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

Method check

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

Indicates that all required data is now available to calculate and check the field. SaveOffset is guaranteed to have been called first. The implementation should read ReserveLength() bytes of data from the saved offset, and verify it based on the data between the saved offset and curOffset.

(curOffset int, buf []byte)

Source from the content-addressed store, hash-verified

69 // SaveOffset is guaranteed to have been called first. The implementation should read ReserveLength() bytes
70 // of data from the saved offset, and verify it based on the data between the saved offset and curOffset.
71 check(curOffset int, buf []byte) error
72}
73
74// dynamicPushDecoder extends the interface of pushDecoder for uses cases where the length of the

Callers 1

popMethod · 0.65

Implementers 3

lengthFieldlength_field.go
varintLengthFieldlength_field.go
crc32Fieldcrc32_field.go

Calls

no outgoing calls

Tested by

no test coverage detected