Class BinaryReaderExtensions
Helper class to parse a byte array with binary data into CLValue
objects.
Inheritance
System.Object
BinaryReaderExtensions
Assembly: Casper.Network.SDK.dll
Syntax
public static class BinaryReaderExtensions : object
Methods
ReadCLBigInteger(BinaryReader)
Declaration
public static BigInteger ReadCLBigInteger(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
BigInteger |
|
ReadCLByteArray(BinaryReader, CLTypeInfo)
Declaration
public static byte[] ReadCLByteArray(this BinaryReader reader, CLTypeInfo typeInfo)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Returns
Type |
Description |
System.Byte[] |
|
ReadCLGlobalStateKey(BinaryReader)
Declaration
public static GlobalStateKey ReadCLGlobalStateKey(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
ReadCLI32(BinaryReader)
Declaration
public static int ReadCLI32(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.Int32 |
|
ReadCLI64(BinaryReader)
Declaration
public static long ReadCLI64(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.Int64 |
|
ReadCLItem(BinaryReader, CLTypeInfo, Type)
Declaration
public static object ReadCLItem(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
Type |
Description |
System.Object |
|
ReadCLItem<TItem>(BinaryReader, CLTypeInfo)
Declaration
public static TItem ReadCLItem<TItem>(BinaryReader reader, CLTypeInfo typeInfo)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Returns
Type Parameters
ReadCLList(BinaryReader, CLTypeInfo, Type)
Declaration
public static IList ReadCLList(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
ReadCLMap(BinaryReader, CLTypeInfo, Type)
Declaration
public static IDictionary ReadCLMap(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
Type |
Description |
IDictionary |
|
ReadCLOption(BinaryReader, CLTypeInfo, Type)
Declaration
public static object ReadCLOption(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
Type |
Description |
System.Object |
|
ReadCLPublicKey(BinaryReader)
Declaration
public static PublicKey ReadCLPublicKey(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
ReadCLResult(BinaryReader, CLTypeInfo, Type)
Declaration
public static object ReadCLResult(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
Type |
Description |
System.Object |
|
ReadCLString(BinaryReader)
Declaration
public static string ReadCLString(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.String |
|
ReadCLTuple1(BinaryReader, CLTypeInfo, Type)
Declaration
public static ITuple ReadCLTuple1(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
ReadCLTuple2(BinaryReader, CLTypeInfo, Type)
Declaration
public static ITuple ReadCLTuple2(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
ReadCLTuple3(BinaryReader, CLTypeInfo, Type)
Declaration
public static ITuple ReadCLTuple3(this BinaryReader reader, CLTypeInfo typeInfo, Type fwType = null)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
CLTypeInfo |
typeInfo |
|
Type |
fwType |
|
Returns
ReadCLU32(BinaryReader)
Declaration
public static uint ReadCLU32(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.UInt32 |
|
ReadCLU64(BinaryReader)
Declaration
public static ulong ReadCLU64(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.UInt64 |
|
ReadCLU8(BinaryReader)
Declaration
public static byte ReadCLU8(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns
Type |
Description |
System.Byte |
|
ReadCLURef(BinaryReader)
Declaration
public static URef ReadCLURef(this BinaryReader reader)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Returns