/// <summary> /// Read first value from a byte array. /// </summary> /// <param name="input"></param> /// <returns></returns> public static UInt64 ReadOneDefault(Byte[] input) { if (null == input) { throw new ArgumentNullException(nameof(input)); } using (var stream = new MemoryStream(input)) { using (var reader = new FibonacciUnsignedReader(stream)) { return(reader.Read()); } } }
/// <summary> /// Standard instantiation. /// </summary> /// <param name="input"></param> public FibonacciSignedReader(Stream input) { Underlying = new FibonacciUnsignedReader(input); }