mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
committed by
GitHub
parent
20548ff3b6
commit
ea2b5148e5
@@ -25,7 +25,7 @@ func GetByte(buf []byte) byte {
|
|||||||
|
|
||||||
// GetBool decodes a little-endian bool from a byte slice.
|
// GetBool decodes a little-endian bool from a byte slice.
|
||||||
func GetBool(buf []byte) bool {
|
func GetBool(buf []byte) bool {
|
||||||
return buf[0] == 1
|
return buf[0] != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUint8 decodes a little-endian uint8 from a byte slice.
|
// GetUint8 decodes a little-endian uint8 from a byte slice.
|
||||||
|
|||||||
Reference in New Issue
Block a user