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

Method push

prep_encoder.go:178–182  ·  view source on GitHub ↗

stackable

(in pushEncoder)

Source from the content-addressed store, hash-verified

176// stackable
177
178func (pe *prepEncoder) push(in pushEncoder) {
179 in.saveOffset(pe.length)
180 pe.length += in.reserveLength()
181 pe.stack = append(pe.stack, in)
182}
183
184func (pe *prepEncoder) pop() error {
185 in := pe.stack[len(pe.stack)-1]

Callers

nothing calls this directly

Calls 2

saveOffsetMethod · 0.65
reserveLengthMethod · 0.65

Tested by

no test coverage detected