Show / Hide Table of Contents

Class LEB128

Facilitates int64/uint64 LEB128 encode/decode See https://en.wikipedia.org/wiki/LEB128 See http://llvm.org/docs/doxygen/html/LEB128_8h_source.html

Inheritance
System.Object
LEB128
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.IO
Assembly: NFX.dll
Syntax
public static class LEB128

Methods

ReadSLEB128(Byte[], Int32)

Declaration
public static long ReadSLEB128(this byte[] buf, int idxStart = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int32 idxStart
Returns
Type Description
System.Int64

ReadSLEB128(Byte[], out Int32, Int32)

Declaration
public static long ReadSLEB128(this byte[] buf, out int count, int idxStart = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int32 count
System.Int32 idxStart
Returns
Type Description
System.Int64

ReadSLEB128(Stream)

Declaration
public static long ReadSLEB128(this Stream stream)
Parameters
Type Name Description
System.IO.Stream stream
Returns
Type Description
System.Int64

ReadSLEB128(Stream, out Int32)

Declaration
public static long ReadSLEB128(this Stream stream, out int count)
Parameters
Type Name Description
System.IO.Stream stream
System.Int32 count
Returns
Type Description
System.Int64

ReadULEB128(Byte[], Int32)

Declaration
public static ulong ReadULEB128(this byte[] buf, int idxStart = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int32 idxStart
Returns
Type Description
System.UInt64

ReadULEB128(Byte[], out Int32, Int32)

Declaration
public static ulong ReadULEB128(this byte[] buf, out int count, int idxStart = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int32 count
System.Int32 idxStart
Returns
Type Description
System.UInt64

ReadULEB128(Stream)

Declaration
public static ulong ReadULEB128(this Stream stream)
Parameters
Type Name Description
System.IO.Stream stream
Returns
Type Description
System.UInt64

ReadULEB128(Stream, out Int32)

Declaration
public static ulong ReadULEB128(this Stream stream, out int count)
Parameters
Type Name Description
System.IO.Stream stream
System.Int32 count
Returns
Type Description
System.UInt64

WriteSLEB128(Byte[], Int64, Int32, Int32)

Declaration
public static void WriteSLEB128(this byte[] buf, long value, int idxStart = 0, int padding = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int64 value
System.Int32 idxStart
System.Int32 padding

WriteSLEB128(Byte[], Int64, out Int32, Int32, Int32)

Declaration
public static void WriteSLEB128(this byte[] buf, long value, out int count, int idxStart = 0, int padding = 0)
Parameters
Type Name Description
System.Byte[] buf
System.Int64 value
System.Int32 count
System.Int32 idxStart
System.Int32 padding

WriteSLEB128(Stream, Int64, Int32)

Declaration
public static void WriteSLEB128(this Stream stream, long value, int padding = 0)
Parameters
Type Name Description
System.IO.Stream stream
System.Int64 value
System.Int32 padding

WriteSLEB128(Stream, Int64, out Int32, Int32)

Declaration
public static void WriteSLEB128(this Stream stream, long value, out int count, int padding = 0)
Parameters
Type Name Description
System.IO.Stream stream
System.Int64 value
System.Int32 count
System.Int32 padding

WriteULEB128(Byte[], UInt64, Int32, UInt32)

Declaration
public static void WriteULEB128(this byte[] buf, ulong value, int idxStart = 0, uint padding = 0U)
Parameters
Type Name Description
System.Byte[] buf
System.UInt64 value
System.Int32 idxStart
System.UInt32 padding

WriteULEB128(Byte[], UInt64, out Int32, Int32, UInt32)

Declaration
public static void WriteULEB128(this byte[] buf, ulong value, out int count, int idxStart = 0, uint padding = 0U)
Parameters
Type Name Description
System.Byte[] buf
System.UInt64 value
System.Int32 count
System.Int32 idxStart
System.UInt32 padding

WriteULEB128(Stream, UInt64, out Int32, UInt32)

Declaration
public static void WriteULEB128(this Stream stream, ulong value, out int count, uint padding = 0U)
Parameters
Type Name Description
System.IO.Stream stream
System.UInt64 value
System.Int32 count
System.UInt32 padding

WriteULEB128(Stream, UInt64, UInt32)

Declaration
public static void WriteULEB128(this Stream stream, ulong value, uint padding = 0U)
Parameters
Type Name Description
System.IO.Stream stream
System.UInt64 value
System.UInt32 padding
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX