public void WriteRead_First1000() { for (ulong input = 0; input < 1000; input++) { var encoded = EliasDeltaUnsignedWriter.WriteOneDefault(input); var output = EliasDeltaUnsignedReader.ReadOneDefault(encoded); Assert.AreEqual(input, output); } }
private ulong Read(string input) { return(EliasDeltaUnsignedReader.ReadOneDefault(BitOperation.ParseToBytes(input))); }