当前位置: 首页>>代码示例>>C#>>正文


C# System.Byte.ToList方法代码示例

本文整理汇总了C#中System.Byte.ToList方法的典型用法代码示例。如果您正苦于以下问题:C# System.Byte.ToList方法的具体用法?C# System.Byte.ToList怎么用?C# System.Byte.ToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Byte的用法示例。


在下文中一共展示了System.Byte.ToList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     System.UInt32 CompressedMessageData_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(CompressedMessageData_len).Length;
     System.Byte[] temp = new System.Byte[CompressedMessageData_len];
     Array.Copy(serialized, curIndex, temp, 0, CompressedMessageData_len);
     CompressedMessageData = temp.ToList();
     curIndex += (int)CompressedMessageData_len;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:kinect2_interface,代码行数:11,代码来源:CompressedMessage.cs

示例2: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += layout.Deserialize(serialized, curIndex);
     System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(data_len).Length;
     System.Byte[] temp = new System.Byte[data_len];
     Array.Copy(serialized, curIndex, temp, 0, data_len);
     data = temp.ToList();
     curIndex += (int)data_len;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:kinect2_interface,代码行数:12,代码来源:UInt8MultiArray.cs

示例3: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += header.Deserialize(serialized, curIndex);
     System.UInt32 format_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(format_len).Length;
     format = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)format_len);
     curIndex += (int)format_len;
     System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(data_len).Length;
     System.Byte[] temp = new System.Byte[data_len];
     Array.Copy(serialized, curIndex, temp, 0, data_len);
     data = temp.ToList();
     curIndex += (int)data_len;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:kinect2_interface,代码行数:16,代码来源:CompressedImage.cs

示例4: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     System.UInt32 TopicName_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(TopicName_len).Length;
     TopicName = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)TopicName_len);
     curIndex += (int)TopicName_len;
     System.UInt32 TopicType_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(TopicType_len).Length;
     TopicType = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)TopicType_len);
     curIndex += (int)TopicType_len;
     System.UInt32 SerializedMessageData_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(SerializedMessageData_len).Length;
     System.Byte[] temp = new System.Byte[SerializedMessageData_len];
     Array.Copy(serialized, curIndex, temp, 0, SerializedMessageData_len);
     SerializedMessageData = temp.ToList();
     curIndex += (int)SerializedMessageData_len;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:kinect2_interface,代码行数:19,代码来源:SerializedMessage.cs

示例5: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += header.Deserialize(serialized, curIndex);
     height = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(height).Length;
     width = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(width).Length;
     System.UInt32 fields_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(fields_len).Length;
     for (int i = 0; i < (int)fields_len; i++)
     {
         sensor_msgs.PointField element = new sensor_msgs.PointField();
         curIndex += element.Deserialize(serialized, curIndex);
         fields.Add(element);
     }
     is_bigendian = Convert.ToBoolean(serialized[curIndex]);
     curIndex++;
     point_step = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(point_step).Length;
     row_step = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(row_step).Length;
     compression_type = serialized[curIndex];
     curIndex++;
     System.UInt32 compressed_data_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(compressed_data_len).Length;
     System.Byte[] temp = new System.Byte[compressed_data_len];
     Array.Copy(serialized, curIndex, temp, 0, compressed_data_len);
     compressed_data = temp.ToList();
     curIndex += (int)compressed_data_len;
     is_dense = Convert.ToBoolean(serialized[curIndex]);
     curIndex++;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:kinect2_interface,代码行数:34,代码来源:CompressedPointCloud2.cs

示例6: Deserialize

 public override int Deserialize(System.Byte[] serialized, int startIndex)
 {
     int curIndex = startIndex;
     curIndex += header.Deserialize(serialized, curIndex);
     height = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(height).Length;
     width = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(width).Length;
     System.UInt32 encoding_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(encoding_len).Length;
     encoding = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)encoding_len);
     curIndex += (int)encoding_len;
     is_bigendian = serialized[curIndex];
     curIndex++;
     step = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(step).Length;
     System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex);
     curIndex += BitConverter.GetBytes(data_len).Length;
     System.Byte[] temp = new System.Byte[data_len];
     Array.Copy(serialized, curIndex, temp, 0, data_len);
     data = temp.ToList();
     curIndex += (int)data_len;
     return (curIndex - startIndex);
 }
开发者ID:WPI-ARC,项目名称:Kinect2ROS,代码行数:24,代码来源:Image.cs


注:本文中的System.Byte.ToList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。