public DataRepresentationFormat(byte[] buffer, int offset) { CharacterFormat = (CharacterFormat)(buffer[offset + 0] & 0x0F); ByteOrder = (ByteOrder)(buffer[offset + 0] >> 4); FloatingPointRepresentation = (FloatingPointRepresentation)(buffer[offset + 1]); }
public DataRepresentationFormat(CharacterFormat characterFormat, ByteOrder byteOrder, FloatingPointRepresentation floatingPointRepresentation) { CharacterFormat = characterFormat; ByteOrder = byteOrder; FloatingPointRepresentation = floatingPointRepresentation; }