TKey ByteArrayToKey(ByteBuffer data) { var reader = new ByteBufferReader(data); IReaderCtx ctx = null; if (_keyHandler.NeedsCtx()) { ctx = new DBReaderCtx(_tr, reader); } return(_keyReader(reader, ctx)); }
TValue ByteArrayToValue(ByteBuffer data) { var reader = new ByteBufferReader(data); IReaderCtx ctx = null; if (_valueHandler.NeedsCtx()) { ctx = new DBReaderCtx(_tr, reader); } return(_valueReader(reader, ctx)); }
TKey CurrentToKey() { Span <byte> buffer = stackalloc byte[512]; var reader = new SpanReader(_keyValueTr.GetKey(ref MemoryMarshal.GetReference(buffer), buffer.Length).Slice(_prefix.Length)); IReaderCtx ctx = null; if (_keyHandler.NeedsCtx()) { ctx = new DBReaderCtx(_tr); } return(_keyReader(ref reader, ctx)); }