MCPcopy Create free account
hub / github.com/IBM/sarama / saveOffset

Method saveOffset

packet_decoder.go:63–63  ·  view source on GitHub ↗

Saves the offset into the input buffer as the location to actually read the calculated value when able.

(in int)

Source from the content-addressed store, hash-verified

61type pushDecoder interface {
62 // Saves the offset into the input buffer as the location to actually read the calculated value when able.
63 saveOffset(in int)
64
65 // Returns the length of data to reserve for the input of this encoder (e.g. 4 bytes for a CRC32).
66 reserveLength() int

Callers

nothing calls this directly

Implementers 3

lengthFieldlength_field.go
varintLengthFieldlength_field.go
crc32Fieldcrc32_field.go

Calls

no outgoing calls

Tested by

no test coverage detected