public object Read(byte[] buffer, int index) { var array = allocator(length); for (var i = 0; i < length; i++) { array.SetValue(elementConverter.Read(buffer, index), i); index += elementSize; } return(array); }
public void ReadUnicode30Wide15() { unicode30Converter.Read(unicode30Buffer, 0); }
public void ReadToLittleEndianLongBinary() { Assert.Equal(Value, (long)converter.Read(ValueBytes, Offset)); }
public void ReadToLittleEndianShortBinary() { Assert.Equal(Value, (short)converter.Read(ValueBytes, Offset)); }
public void Read(byte[] buffer, int index, object target) { setter(target, converter.Read(buffer, index + offset)); }
public void ReadDateTime17() { dateTime17Converter.Read(dateTime17Buffer, 0); }
public void ReadDateTime8() { dateTime8Converter.Read(dateTime8Buffer, 0); }
public void ReadLong18Zero() { long18Converter.Read(long18ZeroBuffer, 0); }
public void ReadSjisText20Single20() { text20Converter.Read(text20Single20Buffer, 0); }
public void ReadBytes20() { bytes20Converter.Read(bytes20Buffer, 0); }
public void ReadBoolean() { booleanConverter.Read(booleanBuffer, 0); }
public void ReadIntBinary() { intBinaryConverter.Read(intBinaryBuffer, 0); }
public void ReadToBigEndianDateTimeBinary() { Assert.Equal(Value, (DateTime)converter.Read(ValueBytes, Offset)); }
public void ReadToIntArray() { Assert.Equal(Value, (int[])converter.Read(ValueBytes, Offset)); }
public void ReadToByte() { Assert.Equal(Value, (byte)converter.Read(ValueBytes, Offset)); }
public void ReadIntegerShort4Zero() { short4Converter.Read(short4ZeroBuffer, 0); }
public void ReadInteger8Zero() { int8Converter.Read(int8ZeroBuffer, 0); }
public void ReadNumberTextShort4Zero() { numberTextShort4Converter.Read(numberTextShort4ZeroBuffer, 0); }
public void ReadDecimal28Zero() { decimal28Converter.Read(decimal28ZeroBuffer, 0); }
public void ReadNumberTextLong18Zero() { numberTextLong18Converter.Read(numberTextLong18ZeroBuffer, 0); }
public void ReadDateTime14() { dateTime14Converter.Read(dateTime14Buffer, 0); }
public void ReadNumberTextDecimal28Zero() { numberTextDecimal28Converter.Read(numberTextDecimal28ZeroBuffer, 0); }
public void ReadText13Code() { text13Converter.Read(ascii13Buffer, 0); }
public void ReadAscii13Code() { ascii13Converter.Read(ascii13Buffer, 0); }
public void ReadToBigEndianFloatBinary() { Assert.Equal(Value, (float)converter.Read(ValueBytes, Offset)); }
public void ReadText30Wide15() { text30Converter.Read(unicode30Buffer, 0); }
public void ReadToLittleEndianDoubleBinary() { Assert.Equal(Value, (double)converter.Read(ValueBytes, Offset)); }
public void ReadToLittleEndianDecimalBinary() { Assert.Equal(Value, (decimal)converter.Read(ValueBytes, Offset)); }