MCPcopy Create free account
hub / github.com/HDT3213/rdb / readListPackEntryAsInt

Method readListPackEntryAsInt

core/listpack.go:197–206  ·  view source on GitHub ↗
(buf []byte, cursor *int)

Source from the content-addressed store, hash-verified

195}
196
197func (dec *Decoder) readListPackEntryAsInt(buf []byte, cursor *int) (int64, error) {
198 str, intval, _, err := dec.readListPackEntry(buf, cursor)
199 if err != nil {
200 return 0, fmt.Errorf("read from failed: %v", err)
201 }
202 if str != nil {
203 return 0, fmt.Errorf("%s is not a integer", string(str))
204 }
205 return intval, nil
206}

Callers 2

readListPackHashExMethod · 0.95

Calls 1

readListPackEntryMethod · 0.95

Tested by

no test coverage detected