Casper.Network.SDK
Show / Hide Table of Contents

Class BinaryReaderExtensions

Helper class to parse a byte array with binary data into CLValue objects.

Inheritance
object
BinaryReaderExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Utils
Assembly: Casper.Network.SDK.dll
Syntax
public static class BinaryReaderExtensions

Methods

| Edit this page View Source

ReadCLBigInteger(BinaryReader)

Declaration
public static BigInteger ReadCLBigInteger(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
BigInteger
| Edit this page View Source

ReadCLByteArray(BinaryReader, CLTypeInfo)

Declaration
public static byte[] ReadCLByteArray(this BinaryReader reader, CLTypeInfo typeInfo)
Parameters
Type Name Description
BinaryReader reader
CLTypeInfo typeInfo
Returns
Type Description
byte[]
| Edit this page View Source

ReadCLGlobalStateKey(BinaryReader)

Declaration
public static GlobalStateKey ReadCLGlobalStateKey(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
GlobalStateKey
| Edit this page View Source

ReadCLI32(BinaryReader)

Declaration
public static int ReadCLI32(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
int
| Edit this page View Source

ReadCLI64(BinaryReader)

Declaration
public static long ReadCLI64(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
long
| Edit this page View Source

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
object
| Edit this page View Source

ReadCLItem<TItem>(BinaryReader, CLTypeInfo)

Declaration
public static TItem ReadCLItem<TItem>(BinaryReader reader, CLTypeInfo typeInfo)
Parameters
Type Name Description
BinaryReader reader
CLTypeInfo typeInfo
Returns
Type Description
TItem
Type Parameters
Name Description
TItem
| Edit this page View Source

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
Type Description
IList
| Edit this page View Source

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
| Edit this page View Source

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
object
| Edit this page View Source

ReadCLPublicKey(BinaryReader)

Declaration
public static PublicKey ReadCLPublicKey(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
PublicKey
| Edit this page View Source

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
object
| Edit this page View Source

ReadCLString(BinaryReader)

Declaration
public static string ReadCLString(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
string
| Edit this page View Source

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
Type Description
ITuple
| Edit this page View Source

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
Type Description
ITuple
| Edit this page View Source

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
Type Description
ITuple
| Edit this page View Source

ReadCLTypeInfo(BinaryReader)

Reads a CLTypeInfo from the binary stream.

Declaration
public static CLTypeInfo ReadCLTypeInfo(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
CLTypeInfo
| Edit this page View Source

ReadCLU32(BinaryReader)

Declaration
public static uint ReadCLU32(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
uint
| Edit this page View Source

ReadCLU64(BinaryReader)

Declaration
public static ulong ReadCLU64(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
ulong
| Edit this page View Source

ReadCLU8(BinaryReader)

Declaration
public static byte ReadCLU8(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
byte
| Edit this page View Source

ReadCLURef(BinaryReader)

Declaration
public static URef ReadCLURef(this BinaryReader reader)
Parameters
Type Name Description
BinaryReader reader
Returns
Type Description
URef
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC