MCPcopy Create free account
hub / github.com/google/go-cloud / EncodeList

Method EncodeList

docstore/driver/codec.go:70–70  ·  view source on GitHub ↗

EncodeList is called when a slice or array is encountered (except for a []byte, which is handled by EncodeBytes). Its argument is the length of the slice or array. The encoding algorithm will call the returned Encoder that many times to encode the successive values of the list. After each such call,

(n int)

Source from the content-addressed store, hash-verified

68 // enc2.EncodeString("b")
69 // enc2.ListIndex(1)
70 EncodeList(n int) Encoder
71 ListIndex(i int)
72
73 // EncodeMap is called when a map is encountered. Its argument is the number of

Callers 1

encodeListFunction · 0.65

Implementers 5

encoderdocstore/memdocstore/codec.go
encoderdocstore/awsdynamodb/v2/codec.go
encoderdocstore/gcpfirestore/codec.go
testEncoderdocstore/driver/codec_test.go
encoderdocstore/mongodocstore/codec.go

Calls

no outgoing calls

Tested by

no test coverage detected