MCPcopy Create free account
hub / github.com/apache/thrift / WriteSetBegin

Method WriteSetBegin

lib/go/thrift/compact_protocol.go:278–281  ·  view source on GitHub ↗

Write a set header.

(ctx context.Context, elemType TType, size int)

Source from the content-addressed store, hash-verified

276
277// Write a set header.
278func (p *TCompactProtocol) WriteSetBegin(ctx context.Context, elemType TType, size int) error {
279 _, err := p.writeCollectionBegin(elemType, size)
280 return NewTProtocolException(err)
281}
282
283func (p *TCompactProtocol) WriteSetEnd(ctx context.Context) error { return nil }
284

Callers

nothing calls this directly

Calls 2

writeCollectionBeginMethod · 0.95
NewTProtocolExceptionFunction · 0.85

Tested by

no test coverage detected