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

Method WriteListBegin

lib/go/thrift/compact_protocol.go:270–273  ·  view source on GitHub ↗

Write a list header.

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

Source from the content-addressed store, hash-verified

268
269// Write a list header.
270func (p *TCompactProtocol) WriteListBegin(ctx context.Context, elemType TType, size int) error {
271 _, err := p.writeCollectionBegin(elemType, size)
272 return NewTProtocolException(err)
273}
274
275func (p *TCompactProtocol) WriteListEnd(ctx context.Context) error { return nil }
276

Callers

nothing calls this directly

Calls 2

writeCollectionBeginMethod · 0.95
NewTProtocolExceptionFunction · 0.85

Tested by

no test coverage detected