本文整理匯總了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);
}