Esc

next_segment

procedureextensionsince 0.36.1Source
  • macOS: next_segment works on macOS
  • Linux: next_segment works on Linux
  • Windows: next_segment works on Windows
  • Wasm: next_segment works on Wasm

Returns [start, end) and true, or false at EOF/error. Each successful call advances. Example: start, end, more := next_segment(*iter); slices the next segment by byte offsets.

Signature

next_segment :: (iter: *Segment_Iterator) -> (start: int, end: int, more: bool)

See also