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

Method formatVectorTypeValue

sup/formatter.go:373–387  ·  view source on GitHub ↗
(indent int, open, close string, tv scode.Bytes)

Source from the content-addressed store, hash-verified

371}
372
373func (f *Formatter) formatVectorTypeValue(indent int, open, close string, tv scode.Bytes) scode.Bytes {
374 f.build(open)
375 if n, _ := super.DecodeLength(tv); n < super.IDTypeComplex {
376 tv = f.formatTypeValue(indent, tv, false)
377 f.build(close)
378 return tv
379 }
380 indent += f.tab
381 f.build(f.newline)
382 f.indent(indent, "")
383 tv = f.formatTypeValue(indent, tv, false)
384 f.build(f.newline)
385 f.indent(indent-f.tab, close)
386 return tv
387}
388
389func (f *Formatter) truncTypeValueErr() {
390 f.build("<ERR truncated type value>")

Callers 1

formatTypeValueMethod · 0.95

Calls 4

buildMethod · 0.95
formatTypeValueMethod · 0.95
indentMethod · 0.95
DecodeLengthFunction · 0.92

Tested by

no test coverage detected