MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / DecodeBool

Method DecodeBool

thrift/binary.go:2152–2154  ·  view source on GitHub ↗

EncodeFieldEnd encodes a field end.

(b []byte)

Source from the content-addressed store, hash-verified

2150
2151// EncodeFieldEnd encodes a field end.
2152func (BinaryEncoding) DecodeBool(b []byte) bool {
2153 return int8(b[0]) == 1
2154}
2155
2156// DecodeByte decodes a byte value.
2157func (BinaryEncoding) DecodeByte(b []byte) byte {

Callers 1

boolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected