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

Method WriteByte

lib/go/thrift/compact_protocol.go:302–305  ·  view source on GitHub ↗

Write a byte. Nothing to see here!

(ctx context.Context, value int8)

Source from the content-addressed store, hash-verified

300
301// Write a byte. Nothing to see here!
302func (p *TCompactProtocol) WriteByte(ctx context.Context, value int8) error {
303 err := p.writeByteDirect(byte(value))
304 return NewTProtocolException(err)
305}
306
307// Write an I16 as a zigzag varint.
308func (p *TCompactProtocol) WriteI16(ctx context.Context, value int16) error {

Callers

nothing calls this directly

Calls 2

writeByteDirectMethod · 0.95
NewTProtocolExceptionFunction · 0.85

Tested by

no test coverage detected