- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hasJSONPrefix (0.12 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go
b, _ := buffer.Peek(size) return buffer, b, hasJSONPrefix(b) } // IsJSONBuffer scans the provided buffer, looking // for an open brace indicating this is JSON. func IsJSONBuffer(buf []byte) bool { return hasJSONPrefix(buf) } var jsonPrefix = []byte("{") // hasJSONPrefix returns true if the provided buffer appears to start with // a JSON open brace. func hasJSONPrefix(buf []byte) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 10.2K bytes - Viewed (0)