本文整理匯總了C#中Blob.ToReader方法的典型用法代碼示例。如果您正苦於以下問題:C# Blob.ToReader方法的具體用法?C# Blob.ToReader怎麽用?C# Blob.ToReader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Blob
的用法示例。
在下文中一共展示了Blob.ToReader方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ParsePropertySignature
public static PropertySignature ParsePropertySignature(Blob blob)
{
using (var br = blob.ToReader())
{
if (br.ReadByte() != 7)
throw new Exception();
var ps = new PropertySignature();
ps.FirstMod = ReadCustomModSignatures(br);
ps.Type = ParseTypeSignature(br);
return ps;
}
}
示例2: ParseFieldSignature
public static FieldSignature ParseFieldSignature(Blob blob)
{
using (var br = blob.ToReader())
{
if (br.ReadByte() != 6)
throw new Exception();
var fs = new FieldSignature();
fs.FirstMod = ReadCustomModSignatures(br);
fs.Type = ParseTypeSignature(br);
return fs;
}
}
示例3: ParseMethodSignature
public static MethodSignature ParseMethodSignature(Blob blob)
{
using (var br = blob.ToReader())
{
var ms = new MethodSignature();
ms.CallingConventions = br.Read<CallingConventions>();
if (ms.CallingConventions.HasFlag(CallingConventions.Generic))
ms.GenericParamCount = br.ReadCompressedUInt32();
ms.ParamCount = br.ReadCompressedUInt32();
ms.ReturnType = ReadReturnTypeSignature(br);
if (ms.ParamCount > 0)
ms.FirstParam = ReadParams(br, ms.ParamCount);
return ms;
}
}