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

Method saveOffset

packet_encoder.go:56–56  ·  view source on GitHub ↗

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

(in int)

Source from the content-addressed store, hash-verified

54type pushEncoder interface {
55 // Saves the offset into the input buffer as the location to actually write the calculated value when able.
56 saveOffset(in int)
57
58 // Returns the length of data to reserve for the output of this encoder (eg 4 bytes for a CRC32).
59 reserveLength() int

Callers 3

pushMethod · 0.65
pushMethod · 0.65
pushMethod · 0.65

Implementers 3

lengthFieldlength_field.go
varintLengthFieldlength_field.go
crc32Fieldcrc32_field.go

Calls

no outgoing calls

Tested by

no test coverage detected