MCPcopy Create free account
hub / github.com/segmentio/encoding / readSet

Function readSet

thrift/decode.go:554–567  ·  view source on GitHub ↗
(r Reader, f func(Reader, Type) error)

Source from the content-addressed store, hash-verified

552}
553
554func readSet(r Reader, f func(Reader, Type) error) error {
555 s, err := r.ReadSet()
556 if err != nil {
557 return err
558 }
559
560 for i := range int(s.Size) {
561 if err := f(r, s.Type); err != nil {
562 return with(dontExpectEOF(err), &decodeErrorSet{cause: s, index: i})
563 }
564 }
565
566 return nil
567}
568
569func readMap(r Reader, f func(Reader, Type, Type) error) error {
570 m, err := r.ReadMap()

Callers 1

skipSetFunction · 0.85

Calls 3

withFunction · 0.85
dontExpectEOFFunction · 0.85
ReadSetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…