コード例 #1
0
ファイル: Utility.cs プロジェクト: 1907931256/MasterProject
        /// <summary>
        /// Get the string for log output.
        /// </summary>
        /// <param name="obj">Structure that you want to convert to a string</param>
        /// <returns>String for log output</returns>
        public static StringBuilder ConvertToLogString(LJV7IF_GET_STORAGE_RSP storageRsp)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(string.Format(@"  StartNo	: {0}", storageRsp.dwStartNo));
            sb.AppendLine(string.Format(@"  DataCnt	: {0}", storageRsp.dwDataCnt));
            sb.Append(ConvertToLogString(storageRsp.stBaseTime).ToString());

            return(sb);
        }
コード例 #2
0
 public static extern int LJV7IF_GetStorageProfile(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
                                                   ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRes,
                                                   ref LJV7IF_PROFILE_INFO pProfileInfo, IntPtr pdwData, uint dwDataSize);
コード例 #3
0
 public static extern int LJV7IF_GetStorageData(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
                                                ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRsp, IntPtr pdwData, uint dwDataSize);