C# 클래스 Zoompf.SPDYAnalysis.ByteBuffer

Byte Buffer. Handy class that auto resizes as you add bytes and lets you get a byte array out of it
파일 보기 프로젝트 열기: zoompf/SPDYCheck

공개 메소드들

메소드 설명
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[]

비공개 메소드들

메소드 설명
resizeByAtLeast ( int size ) : void

메소드 상세

Append() 공개 메소드

public Append ( Stream ms, int size ) : void
ms Stream
size int
리턴 void

Append() 공개 메소드

public Append ( byte b ) : void
b byte
리턴 void

Append() 공개 메소드

public Append ( byte array, int length ) : void
array byte
length int
리턴 void

AppendHex() 공개 메소드

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
리턴 void

ByteBuffer() 공개 메소드

Creates a ByteBuffer
public ByteBuffer ( ) : System
리턴 System

ByteBuffer() 공개 메소드

public ByteBuffer ( int initialCapacity ) : System
initialCapacity int
리턴 System

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

HexStringToBytes() 공개 정적인 메소드

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

Prepend() 공개 메소드

public Prepend ( byte b ) : void
b byte
리턴 void

PrependHex() 공개 메소드

public PrependHex ( String hexString ) : void
hexString String
리턴 void

ToByteArray() 공개 메소드

public ToByteArray ( ) : byte[]
리턴 byte[]