C# Class Neo.VM.Helper

ファイルを表示 Open project: NewEconoLab/NEL.LightDB

Public Methods

Method Description
ReadVarBytes ( BinaryReader reader, int max = 0x10000000 ) : byte[]
ReadVarInt ( BinaryReader reader, ulong max = ulong.MaxValue ) : ulong
SafeReadBytes ( BinaryReader reader, int count ) : byte[]

Method Details

ReadVarBytes() public static method

public static ReadVarBytes ( BinaryReader reader, int max = 0x10000000 ) : byte[]
reader BinaryReader
max int
return byte[]

ReadVarInt() public static method

public static ReadVarInt ( BinaryReader reader, ulong max = ulong.MaxValue ) : ulong
reader BinaryReader
max ulong
return ulong

SafeReadBytes() public static method

public static SafeReadBytes ( BinaryReader reader, int count ) : byte[]
reader BinaryReader
count int
return byte[]