MCPcopy
hub / github.com/rs/zerolog / binaryFmt

Function binaryFmt

internal/cbor/decode_stream.go:612–617  ·  view source on GitHub ↗

Detect if the bytes to be printed is Binary or not.

(p []byte)

Source from the content-addressed store, hash-verified

610
611// Detect if the bytes to be printed is Binary or not.
612func binaryFmt(p []byte) bool {
613 if len(p) > 0 && p[0] > 0x7F {
614 return true
615 }
616 return false
617}
618
619func getReader(str string) *bufio.Reader {
620 return bufio.NewReader(strings.NewReader(str))

Callers 4

DecodeIfBinaryToStringFunction · 0.85
DecodeObjectToStrFunction · 0.85
DecodeIfBinaryToBytesFunction · 0.85
TestBinaryFmtFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBinaryFmtFunction · 0.68