Exemplo n.º 1
0
        private static int CreateDeviceListItemBuffer(byte[] buffer, int index, TestHolderIrDADeviceInfo curDevice)
        {
            byte[] hintsBytes = BitConverter.GetBytes((UInt16)curDevice.m_hints);
            //
            int length = CreateDeviceListItemBuffer(buffer, index,
                                                    curDevice.m_address.ToByteArray(), curDevice.m_name, hintsBytes, (Byte)curDevice.m_charset);

            return(length);
        }
Exemplo n.º 2
0
        public static IrDADeviceInfo Factory_IrDADeviceInfo(byte[] address, String name, byte[] hints, byte charset)
        {
            IrDADeviceInfo item = TestHolderIrDADeviceInfo.CreateDeviceListInfo(address, name, hints, charset);

            return(item);
        }