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

Function rwTimeBytes

msgp/json_bytes.go:276–289  ·  view source on GitHub ↗
(w jsWriter, msg []byte, scratch []byte, depth int)

Source from the content-addressed store, hash-verified

274}
275
276func rwTimeBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
277 var t time.Time
278 var err error
279 t, msg, err = ReadTimeBytes(msg)
280 if err != nil {
281 return msg, scratch, err
282 }
283 bts, err := t.MarshalJSON()
284 if err != nil {
285 return msg, scratch, err
286 }
287 _, err = w.Write(bts)
288 return msg, scratch, err
289}
290
291func rwExtensionBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) {
292 var err error

Callers

nothing calls this directly

Calls 3

ReadTimeBytesFunction · 0.85
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…