本文整理汇总了C#中System.UInt32类的典型用法代码示例。如果您正苦于以下问题:C# System.UInt32类的具体用法?C# System.UInt32怎么用?C# System.UInt32使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
System.UInt32类属于命名空间,在下文中一共展示了System.UInt32类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override int Deserialize(System.Byte[] serialized, int startIndex)
{
int curIndex = startIndex;
data = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(data).Length;
return (curIndex - startIndex);
}
示例2: Abstract1
/// <summary>Initializes a new instance of the Abstract1 class.</summary>
protected Abstract1(
System.UInt32 identity,
System.Int32 abstract1Field1,
System.Int32 abstract1Field2,
ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
{
this.identity = identity;
this.abstract1Field1 = abstract1Field1;
this.abstract1Field2 = abstract1Field2;
}
示例3: A
/// <summary>Initializes a new instance of the A class.</summary>
protected A(
System.UInt32 identity,
System.Int32 field1,
ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
{
this.identity = identity;
this.field1 = field1;
if (!skipValidation.Value) {
this.Validate();
}
}
示例4: Deserialize
public override int Deserialize(System.Byte[] serialized, int startIndex)
{
int curIndex = startIndex;
seq = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(seq).Length;
curIndex += stamp.Deserialize(serialized, curIndex);
System.UInt32 frame_id_len = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(frame_id_len).Length;
frame_id = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)frame_id_len);
curIndex += (int)frame_id_len;
return (curIndex - startIndex);
}
示例5: ReqAndHierL1
/// <summary>Initializes a new instance of the ReqAndHierL1 class.</summary>
protected ReqAndHierL1(
System.UInt32 identity,
System.String l1Field1,
System.String l1Field2,
ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
{
this.identity = identity;
this.l1Field1 = l1Field1;
this.l1Field2 = l1Field2;
if (!skipValidation.Value) {
this.Validate();
}
}
示例6: Contact
/// <summary>Initializes a new instance of the Contact class.</summary>
protected Contact(
System.UInt32 identity,
System.String name,
System.String email,
ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
{
this.identity = identity;
this.name = name;
this.email = email;
if (!skipValidation.Value) {
this.Validate();
}
}
示例7: Deserialize
public override int Deserialize(System.Byte[] serialized, int startIndex)
{
int curIndex = startIndex;
System.UInt32 label_len = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(label_len).Length;
label = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)label_len);
curIndex += (int)label_len;
size = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(size).Length;
stride = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(stride).Length;
return (curIndex - startIndex);
}
示例8: Fruit
/// <summary>Initializes a new instance of the Fruit class.</summary>
protected Fruit(
System.UInt32 identity,
System.String color,
System.Int32 skinThickness,
ImmutableObjectGraph.Optional<bool> skipValidation = default(ImmutableObjectGraph.Optional<bool>))
{
this.identity = identity;
this.color = color;
this.skinThickness = skinThickness;
if (!skipValidation.Value) {
this.Validate();
}
}
示例9: Deserialize
public override int Deserialize(System.Byte[] serialized, int startIndex)
{
int curIndex = startIndex;
x_offset = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(x_offset).Length;
y_offset = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(y_offset).Length;
height = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(height).Length;
width = BitConverter.ToUInt32(serialized, curIndex);
curIndex += BitConverter.GetBytes(width).Length;
do_rectify = Convert.ToBoolean(serialized[curIndex]);
curIndex++;
return (curIndex - startIndex);
}
示例10: PointField
public PointField()
{
name = "";
offset = 0;
datatype = 0;
count = 0;
}
示例11: Clear
public PgHdr pPgHdr = new PgHdr(); // Pointer to Actual Page Header
public void Clear()
{
this.iKey = 0;
this.pNext = null;
this.pCache = null;
this.pPgHdr.ClearState();
}
示例12: Clear
public u32 iMaxKey; /* Largest key seen since xTruncate() */
public void Clear()
{
nRecyclable = 0;
nPage = 0;
nHash = 0;
apHash = null;
iMaxKey = 0;
}
示例13: Subtract
public void Subtract()
{
unchecked
{
var complement = (DoubleWord)(-InputB);
Output = (DoubleWord)InputA - InputB;
}
}
示例14: RegionOfInterest
public RegionOfInterest()
{
x_offset = 0;
y_offset = 0;
height = 0;
width = 0;
do_rectify = false;
}
示例15: TrackerState
public TrackerState()
{
header = new std_msgs.Header();
ActiveTracks = 0;
TotalTracks = 0;
Tracks = new List<person_tracker.TrackedPerson>();
TrackerType = 0;
TrackerName = "";
}