public void ReadKeyFrom(ref SliceReader reader, out TKey value) { if (this.Unpack is Func <Slice, TKey> f) { value = f(reader.ReadToEnd()); return; } throw new InvalidOperationException(); }
public bool TryReadKeyFrom(ref SliceReader reader, out TKey value) { if (this.Unpack is Func <Slice, TKey> f) { try { value = f(reader.ReadToEnd()); return(true); } catch (FormatException) { value = default !;
public void ReadKeyFrom(ref SliceReader reader, out T key) { key = m_codec.DecodeOrdered(reader.ReadToEnd()); }
public void ReadKeyFrom(ref SliceReader reader, out Slice value) { value = reader.ReadToEnd(); }
public void ReadKeyFrom(ref SliceReader reader, out T value) { value = m_decoder(reader.ReadToEnd()); }