本文整理汇总了C#中Apache.Qpid.Buffer.ByteBuffer.Skip方法的典型用法代码示例。如果您正苦于以下问题:C# ByteBuffer.Skip方法的具体用法?C# ByteBuffer.Skip怎么用?C# ByteBuffer.Skip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Apache.Qpid.Buffer.ByteBuffer
的用法示例。
在下文中一共展示了ByteBuffer.Skip方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FieldTable
/// <summary>
/// Construct a new field table.
/// </summary>
/// <param name="buffer">the buffer from which to read data. The length byte must be read already</param>
/// <param name="length">the length of the field table. Must be > 0.</param>
public FieldTable(ByteBuffer buffer, uint length) : this()
{
_encodedForm = buffer.Slice();
_encodedForm.Limit = (int)length;
_encodedSize = length;
buffer.Skip((int)length);
}
示例2: PopulateFromBuffer
public void PopulateFromBuffer(ByteBuffer buffer, uint size)
{
if (size > 0)
{
//allow other implementations to have a payload, but ignore it:
buffer.Skip((int) size);
}
}
示例3: PopulateFromBuffer
public void PopulateFromBuffer(ByteBuffer buffer, uint size)
{
if (size > 0)
{
_payload = buffer.Slice();
_payload.Limit = (int)size;
buffer.Skip((int)size);
}
}