MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / ContainsBinaryData

Function ContainsBinaryData

pkg/util/utilfn/marshal.go:216–226  ·  view source on GitHub ↗

ContainsBinaryData checks if the provided data contains binary (non-text) content

(data []byte)

Source from the content-addressed store, hash-verified

214
215// ContainsBinaryData checks if the provided data contains binary (non-text) content
216func ContainsBinaryData(data []byte) bool {
217 for _, b := range data {
218 if b == 0 {
219 return true
220 }
221 if b < 32 && b != 9 && b != 10 && b != 13 {
222 return true
223 }
224 }
225 return false
226}

Callers 2

SummarizeFileFunction · 0.92
aiRunFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected