MCPcopy
hub / github.com/ugorji/go / mapStart

Method mapStart

codec/encode.go:1416–1419  ·  view source on GitHub ↗

---- container tracker methods Note: We update the .c after calling the callback. This way, the callback can know what the last status was.

(length int)

Source from the content-addressed store, hash-verified

1414// This way, the callback can know what the last status was.
1415
1416func (e *Encoder) mapStart(length int) {
1417 e.e.WriteMapStart(length)
1418 e.c = containerMapStart
1419}
1420
1421func (e *Encoder) mapElemKey() {
1422 if e.js {

Callers 15

kSliceWMbsMethod · 0.95
kArrayWMbsMethod · 0.95
kStructNoOmitemptyMethod · 0.95
kStructMethod · 0.95
kMapMethod · 0.95
EncWriteMapStartMethod · 0.45
DecReadMapStartMethod · 0.45
EncAsMapSliceIntfVMethod · 0.45
EncAsMapSliceStringVMethod · 0.45
EncAsMapSliceBytesVMethod · 0.45
EncAsMapSliceFloat32VMethod · 0.45
EncAsMapSliceFloat64VMethod · 0.45

Calls 1

WriteMapStartMethod · 0.65

Tested by

no test coverage detected