MCPcopy
hub / github.com/wavetermdev/waveterm / HasBinaryData

Function HasBinaryData

pkg/util/utilfn/utilfn.go:1024–1031  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

1022}
1023
1024func HasBinaryData(data []byte) bool {
1025 for _, b := range data {
1026 if b < 32 && b != '\n' && b != '\r' && b != '\t' && b != '\f' && b != '\b' {
1027 return true
1028 }
1029 }
1030 return false
1031}
1032
1033func DumpGoRoutineStacks(w io.Writer) {
1034 buf := make([]byte, 1<<20)

Callers 4

getCustomInitScriptFunction · 0.92
validateTextFileFunction · 0.92
verifyWriteTextFileInputFunction · 0.92
writeTextFileCallbackFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected