/// <summary>
 /// Write a given value.
 /// </summary>
 /// <param name="values"></param>
 /// <returns></returns>
 public static Byte[] WriteOneDefault(UInt64 value)
 {
     using (var stream = new MemoryStream()) {
         using (var writer = new EliasDeltaUnsignedWriter(stream)) {
             writer.Write(value);
         }
         return(stream.ToArray());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Standard instantiation.
 /// </summary>
 /// <param name="output"></param>
 public EliasDeltaSignedWriter(Stream output)
 {
     Underlying = new EliasDeltaUnsignedWriter(output);
 }