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();
 }
Exemple #2
0
 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());
 }
Exemple #4
0
 public void ReadKeyFrom(ref SliceReader reader, out Slice value)
 {
     value = reader.ReadToEnd();
 }
Exemple #5
0
 public void ReadKeyFrom(ref SliceReader reader, out T value)
 {
     value = m_decoder(reader.ReadToEnd());
 }