本文整理汇总了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;
}
}