MCPcopy
hub / github.com/tinylib/msgp / rwTime

Function rwTime

msgp/json.go:289–299  ·  view source on GitHub ↗
(dst jsWriter, src *Reader)

Source from the content-addressed store, hash-verified

287}
288
289func rwTime(dst jsWriter, src *Reader) (int, error) {
290 t, err := src.ReadTime()
291 if err != nil {
292 return 0, err
293 }
294 bts, err := t.MarshalJSON()
295 if err != nil {
296 return 0, err
297 }
298 return dst.Write(bts)
299}
300
301func rwExtension(dst jsWriter, src *Reader) (n int, err error) {
302 et, err := src.peekExtensionType()

Callers

nothing calls this directly

Calls 3

ReadTimeMethod · 0.80
MarshalJSONMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…