private FrameType GetFrameType(byte[] data) { return (FrameType)BinaryHelper.Int16FromBytes(data[2], data[3]); }