
using uint8_t = System.Byte;
using uint16_t = System.UInt16;
using uint32_t = System.UInt32;
using uint64_t = System.UInt64;

using int8_t = System.SByte;
using int16_t = System.Int16;
using int32_t = System.Int32;
using int64_t = System.Int64;

using float32 = System.Single;

using System;
using System.Linq;
using System.Runtime.InteropServices;

namespace DroneCAN
{
    public partial class DroneCAN 
    {
//using uavcan.protocol.file.EntryType.cs
//using uavcan.protocol.file.Error.cs
//using uavcan.protocol.file.Path.cs
        public partial class uavcan_protocol_file_GetDirectoryEntryInfo_res: IDroneCANSerialize 
        {
            public const int UAVCAN_PROTOCOL_FILE_GETDIRECTORYENTRYINFO_RES_MAX_PACK_SIZE = 204;
            public const ulong UAVCAN_PROTOCOL_FILE_GETDIRECTORYENTRYINFO_RES_DT_SIG = 0x8C46E8AB568BDA79;
            public const int UAVCAN_PROTOCOL_FILE_GETDIRECTORYENTRYINFO_RES_DT_ID = 46;

            public uavcan_protocol_file_Error error = new uavcan_protocol_file_Error();
            public uavcan_protocol_file_EntryType entry_type = new uavcan_protocol_file_EntryType();
            public uavcan_protocol_file_Path entry_full_path = new uavcan_protocol_file_Path();

            public void encode(dronecan_serializer_chunk_cb_ptr_t chunk_cb, object ctx, bool fdcan = false)
            {
                encode_uavcan_protocol_file_GetDirectoryEntryInfo_res(this, chunk_cb, ctx, fdcan);
            }

            public void decode(CanardRxTransfer transfer, bool fdcan = false)
            {
                decode_uavcan_protocol_file_GetDirectoryEntryInfo_res(transfer, this, fdcan);
            }

            public static uavcan_protocol_file_GetDirectoryEntryInfo_res ByteArrayToDroneCANMsg(byte[] transfer, int startoffset, bool fdcan = false)
            {
                var ans = new uavcan_protocol_file_GetDirectoryEntryInfo_res();
                ans.decode(new DroneCAN.CanardRxTransfer(transfer.Skip(startoffset).ToArray()), fdcan);
                return ans;
            }
        }
    }
}