MCPcopy Create free account
hub / github.com/segmentio/encoding / Reset

Method Reset

thrift/encode.go:52–55  ·  view source on GitHub ↗
(w Writer)

Source from the content-addressed store, hash-verified

50}
51
52func (e *Encoder) Reset(w Writer) {
53 e.w = w
54 e.f = e.f.without(protocolFlags).with(encoderFlags(w))
55}
56
57func encoderFlags(w Writer) flags {
58 return flags(w.Protocol().Features() << featuresBitOffset)

Callers 2

benchmarkMarshalFunction · 0.45
benchmarkUnmarshalFunction · 0.45

Calls 3

encoderFlagsFunction · 0.85
withMethod · 0.45
withoutMethod · 0.45

Tested by 2

benchmarkMarshalFunction · 0.36
benchmarkUnmarshalFunction · 0.36