public BinaryCodeReader(IEnumerable <byte> source) { if (source == null) { throw new ArgumentNullException("Source cannot be a null instance"); } Source = new ByteArrayReader(source); BytePointer = 0; BitPointer = 0; }
public BinaryCodeReader(IBinaryReadable source) { if (source == null) { throw new ArgumentNullException("IBinaryReadable cannot be a null instance"); } Source = source; BytePointer = 0; BitPointer = 0; }