本文整理汇总了C#中System.ByteBuffer.WriteInt32方法的典型用法代码示例。如果您正苦于以下问题:C# ByteBuffer.WriteInt32方法的具体用法?C# ByteBuffer.WriteInt32怎么用?C# ByteBuffer.WriteInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ByteBuffer
的用法示例。
在下文中一共展示了ByteBuffer.WriteInt32方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PatchRawFatSection
void PatchRawFatSection(ByteBuffer buffer, MetadataBuilder metadata)
{
position--;
var length = ReadInt32();
buffer.WriteInt32(length);
var count = (length >> 8) / 24;
PatchRawExceptionHandlers(buffer, metadata, count, true);
}
示例2: PatchRawFatMethod
void PatchRawFatMethod(ByteBuffer buffer, MethodSymbols symbols, CodeWriter writer, out MetadataToken local_var_token)
{
var flags = ReadUInt16();
buffer.WriteUInt16(flags);
buffer.WriteUInt16(ReadUInt16());
symbols.code_size = ReadInt32();
buffer.WriteInt32(symbols.code_size);
local_var_token = ReadToken();
if (local_var_token.RID > 0)
{
var variables = symbols.variables = ReadVariables(local_var_token);
buffer.WriteUInt32(variables != null
? writer.GetStandAloneSignature(symbols.variables).ToUInt32()
: 0);
}
else
buffer.WriteUInt32(0);
PatchRawCode(buffer, symbols.code_size, writer);
if ((flags & 0x8) != 0)
PatchRawSection(buffer, writer.metadata);
}