MCPcopy Create free account
hub / github.com/brimdata/super / lengthOfBytesOrString

Function lengthOfBytesOrString

runtime/vam/expr/slice.go:221–226  ·  view source on GitHub ↗
(id int, slice []byte)

Source from the content-addressed store, hash-verified

219}
220
221func lengthOfBytesOrString(id int, slice []byte) int {
222 if id == super.IDString {
223 return utf8.RuneCount(slice)
224 }
225 return len(slice)
226}
227
228func sliceIsConstIndex(vec vector.Any) (int, bool) {
229 if vec == nil {

Callers 2

evalStringOrBytesMethod · 0.85
evalStringOrBytesFastMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected