public byte[] s8FileName; /* 待删除文件名 */ public SI_LMTENBSI_DelFileReqMsg() { head = new SI_LMTENBSI_MsgHead(); head.u16MsgType = SiMacroDef.O_LMTENBSI_DELFILE_REQ; head.u16MsgLength = (ushort)(head.Len + sizeof(byte) + SiMacroDef.SI_FILEPATH_MAX_LEN); s8FileName = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; }
public byte[] s8DevName; /* 设备名 */ public SI_LMTENBSI_GetCapacityReqMsg() { head = new SI_LMTENBSI_MsgHead(); head.u16MsgLength = (ushort)(head.Len + SiMacroDef.SI_FILEPATH_MAX_LEN); head.u16MsgType = SiMacroDef.O_LMTENBSI_GETCAPACITY_REQ; s8DevName = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; }
public byte[] s8SrcPath; /* 查询路径 */ public SI_LMTENBSI_GetFileInfoReqMsg() { s8SrcPath = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; head = new SI_LMTENBSI_MsgHead(); head.u16MsgLength = (ushort)(head.Len + SiMacroDef.SI_FILEPATH_MAX_LEN); head.u16MsgType = SiMacroDef.O_LMTENBSI_GETFILEINFO_REQ; }
public byte u8RdWrAttribute; /* 1:只读;0:可读可写 */ public SI_LMTENBSI_SetRdWrAttribReqMsg() { head = new SI_LMTENBSI_MsgHead(); head.u16MsgLength = (ushort)(head.Len + SiMacroDef.SI_FILEPATH_MAX_LEN + sizeof(byte)); head.u16MsgType = SiMacroDef.O_LMTENBSI_SETRDWRATTRIB_REQ; s8FileName = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; }
public byte[] s8FileName; /* 待查询的文件名 */ public SI_LMTENBSI_GetFileAttribReqMsg() { head = new SI_LMTENBSI_MsgHead(); head.u16MsgLength = (ushort)(SiMacroDef.SI_FILEPATH_MAX_LEN + SiMacroDef.SI_FILENAME_MAX_LEN + head.Len); head.u16MsgType = SiMacroDef.O_LMTENBSI_GETFILEATTRIB_REQ; s8FilePath = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; s8FileName = new byte[SiMacroDef.SI_FILENAME_MAX_LEN]; }
public static SI_LMTENBSI_MsgHead GetSiMsgHead(byte[] data, int offset = 0) { SI_LMTENBSI_MsgHead head = new SI_LMTENBSI_MsgHead(); if (-1 == head.DeserializeToStruct(data, offset)) { return(null); } return(head); }
public byte s8SetResult; /* 0:成功;1:失败;2:参数错误 */ public SI_SILMTENB_SetRdWrAttribRspMsg() { head = new SI_LMTENBSI_MsgHead(); s8FileName = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; }
public byte s8GetResult; /* 0:成功;1:失败 */ public SI_SILMTENB_GetCapacityRspMsg() { head = new SI_LMTENBSI_MsgHead(); s8DevName = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; }
public byte s8GetResult; /* 0:成功;1:失败 */ public SI_SILMTENB_GetFileAttribRspMsg() { head = new SI_LMTENBSI_MsgHead(); s8FilePath = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; struFileInfo = new SI_STRU_FileInfo(); }
public SI_STRU_FileInfo[] struFileInfo; /* 文件信息结构数组 */ public SI_SILMTENB_GetFileInfoRspMsg() { s8SrcPath = new byte[SiMacroDef.SI_FILEPATH_MAX_LEN]; struFileInfo = new SI_STRU_FileInfo[SiMacroDef.SI_DIR_MAX_FILENUM]; head = new SI_LMTENBSI_MsgHead(); }