C# Class Zoompf.SPDYAnalysis.ByteBuffer

Byte Buffer. Handy class that auto resizes as you add bytes and lets you get a byte array out of it
Afficher le fichier Open project: zoompf/SPDYCheck

Méthodes publiques

Méthode Description
Append ( Stream ms, int size ) : void
Append ( byte b ) : void
Append ( byte array, int length ) : void
AppendHex ( String hexString ) : void

Appends a string of raw Hex digits (i.e. "0xFFAB")

ByteBuffer ( ) : System

Creates a ByteBuffer

ByteBuffer ( int initialCapacity ) : System
Clear ( ) : void
HexStringToBytes ( string hex ) : byte[]

Converts a string of hex digits like "0xFFAB" or "00FFEE" to bytes

Prepend ( byte b ) : void
PrependHex ( String hexString ) : void
ToByteArray ( ) : byte[]

Private Methods

Méthode Description
resizeByAtLeast ( int size ) : void

Method Details

Append() public méthode

public Append ( Stream ms, int size ) : void
ms Stream
size int
Résultat void

Append() public méthode

public Append ( byte b ) : void
b byte
Résultat void

Append() public méthode

public Append ( byte array, int length ) : void
array byte
length int
Résultat void

AppendHex() public méthode

Appends a string of raw Hex digits (i.e. "0xFFAB")
public AppendHex ( String hexString ) : void
hexString String string of hex digits, with optional leading 0x
Résultat void

ByteBuffer() public méthode

Creates a ByteBuffer
public ByteBuffer ( ) : System
Résultat System

ByteBuffer() public méthode

public ByteBuffer ( int initialCapacity ) : System
initialCapacity int
Résultat System

Clear() public méthode

public Clear ( ) : void
Résultat void

HexStringToBytes() public static méthode

Converts a string of hex digits like "0xFFAB" or "00FFEE" to bytes
public static HexStringToBytes ( string hex ) : byte[]
hex string
Résultat byte[]

Prepend() public méthode

public Prepend ( byte b ) : void
b byte
Résultat void

PrependHex() public méthode

public PrependHex ( String hexString ) : void
hexString String
Résultat void

ToByteArray() public méthode

public ToByteArray ( ) : byte[]
Résultat byte[]