| synopsis || return value || arguments || prev || next |

kdu_compressed_source::seek

Java: Kdu_compressed_source::Seek

virtual bool seek( kdu_long offset)

Java: boolean Seek( long offset)

[Declared in "../coresys/common/kdu_compressed.h"]

Go to class description.


Synopsis

This function should be implemented by sources which support sequential reading of the code-stream from any position (i.e., KDU_SOURCE_CAP_SEEKABLE). Subsequent reads transfer data starting from a location offset bytes beyond the seek origin.

For non-caching sources, the seek origin is the start of the code-stream, regardless of whether or not the code-stream appears at the start of its containing file.

For sources supporting KDU_SOURCE_CAP_CACHED, the seek origin is the start of the code-stream only until such point as the first call to set_precinct_scope or set_tile_header_scope is called. After that, the seek origin is the first byte of the relevant precinct or tile-header (excluding the SOT marker segment).


Return Value

If seeking is not supported, the function should return false. If seeking is supported, the function should return true, even if offset identifies a location outside the relevant scope.

Arguments

offset [kdu_long]


| top || synopsis || return value || arguments || prev || next |