コード例 #1
0
        public static UInt24 ReadUInt24(this byte[] buffer, ref int offset, Endianity endianity)
        {
            UInt24 uint24 = ByteArrayExtensions.ReadUInt24(buffer, offset, endianity);

            offset += 3;
            return(uint24);
        }
コード例 #2
0
        public static UInt24 ReadUInt24(this byte[] buffer, int offset, Endianity endianity)
        {
            UInt24 uint24 = ByteArrayExtensions.ReadUInt24(buffer, offset);

            if (ByteArrayExtensions.IsWrongEndianity(endianity))
            {
                uint24 = ByteArrayExtensions.HostToNetworkOrder(uint24);
            }
            return(uint24);
        }