MCPcopy
hub / github.com/dropbox/godropbox / parseMircoseconds

Method parseMircoseconds

database/binlog/query_event.go:466–478  ·  view source on GitHub ↗
(data []byte, q *QueryEvent)

Source from the content-addressed store, hash-verified

464}
465
466func (p *QueryEventParser) parseMircoseconds(data []byte, q *QueryEvent) (
467 []byte,
468 error) {
469
470 t, data, err := readSlice(data, 3)
471 if err != nil {
472 return data, err
473 }
474
475 q.microseconds = new(uint32)
476 *q.microseconds = LittleEndian.Uint24(t)
477 return data, nil
478}

Callers 1

parseStatusMethod · 0.95

Calls 2

readSliceFunction · 0.85
Uint24Method · 0.45

Tested by

no test coverage detected