Type Definition segsource::DataSegment[][src]

type DataSegment<'s> = Segment<'s, u8>;
Expand description

An alias for a segment that deals with binary data.

Implementations

Creates a new Segment using the provided endidness.

Note: Only available if the Segment’s I is u8.

Creates a new Segment using the provided endidness and initial offset.

Note: Only available if the Segment’s I is u8.

The endidness of the Segment.

Note: Only available if the Segment’s I is u8.

Fills the provided buffer with the next n bytes, where n is the length of the buffer. This then advances the Segment::current_offset by n.

Note: Only available if the Segment’s I is u8.

Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) at the given offset without altering the Segment::current_offset. In most cases, you should use methods like Segment::u8_at instead.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::int_at. Note: Only available if the Segment’s I is u8.

Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at the at the Segment::current_offset without altering it. In most cases, you should use methods like Segment::current_u8 instead.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::current_int. Note: Only available if the Segment’s I is u8.

Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at the at the Segment::current_offset but without advancing the Segment::current_offset. In most cases, you should use methods like Segment::peek_u8 instead.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::peek_int. Note: Only available if the Segment’s I is u8.

Gets an integer of the provided type (e.g. u8, i8, u16, i16, etcetera) starting at the at the Segment::current_offset and then advances the Segment::current_offset by n, where n is the number of bytes required to create the requested integer type. In most cases, you should use methods like Segment::next_u8 instead.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int.

Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.

See the documentation for Segment::next_int. Note: Only available if the Segment’s I is u8.