C# 클래스 Iaik.Utils.ByteHelper

Static class which provides some byte helper functions
파일 보기 프로젝트 열기: areiter/InMemoryFuzzing

공개 메소드들

메소드 설명
ByteArrayToHexString ( byte data ) : string

Converts a byte array to a space seperated hex string

ByteArrayToHexString ( byte data, string seperator ) : string

Converts a byte array to a hex string

ByteArrayToUInt64 ( byte data, int offset, int length ) : System.UInt64

Decodes the number encoded in data as a little endian number

ByteArrayToUInt64 ( byte data, int offset, int length, bool useLittleEndian ) : System.UInt64
ClearBytes ( byte data ) : void
CompareByteArrays ( byte left, byte right ) : bool

Compares the 2 byte arrays and returns if they contain the same data

SerializeToBytes ( ) : byte[]
XORBytes ( byte data, byte key ) : void

XORs all bytes from data with key and saves them to data

메소드 상세

ByteArrayToHexString() 공개 정적인 메소드

Converts a byte array to a space seperated hex string
public static ByteArrayToHexString ( byte data ) : string
data byte
리턴 string

ByteArrayToHexString() 공개 정적인 메소드

Converts a byte array to a hex string
public static ByteArrayToHexString ( byte data, string seperator ) : string
data byte
seperator string seperator which is appended to each hex value (except the last)
리턴 string

ByteArrayToUInt64() 공개 정적인 메소드

Decodes the number encoded in data as a little endian number
public static ByteArrayToUInt64 ( byte data, int offset, int length ) : System.UInt64
data byte A
offset int A
length int A
리턴 System.UInt64

ByteArrayToUInt64() 공개 정적인 메소드

public static ByteArrayToUInt64 ( byte data, int offset, int length, bool useLittleEndian ) : System.UInt64
data byte
offset int
length int
useLittleEndian bool
리턴 System.UInt64

ClearBytes() 공개 정적인 메소드

public static ClearBytes ( byte data ) : void
data byte
리턴 void

CompareByteArrays() 공개 정적인 메소드

Compares the 2 byte arrays and returns if they contain the same data
public static CompareByteArrays ( byte left, byte right ) : bool
left byte
right byte
리턴 bool

SerializeToBytes() 공개 정적인 메소드

public static SerializeToBytes ( ) : byte[]
리턴 byte[]

XORBytes() 공개 정적인 메소드

XORs all bytes from data with key and saves them to data
public static XORBytes ( byte data, byte key ) : void
data byte
key byte
리턴 void