C# 클래스 Be.Windows.Forms.ByteCollection

Represents a collection of bytes.
상속: System.Collections.CollectionBase
파일 보기 프로젝트 열기: appsec-labs/Advanced_Packet_Editor 1 사용 예제들

공개 메소드들

메소드 설명
Add ( byte b ) : void

Adds a byte into the collection.

AddRange ( byte bs ) : void

Adds a range of bytes to the collection.

ByteCollection ( ) : System

Initializes a new instance of ByteCollection class.

ByteCollection ( byte bs ) : System

Initializes a new instance of ByteCollection class.

Contains ( byte b ) : bool

Returns true, if the byte exists in the collection.

CopyTo ( byte bs, int index ) : void

Copies the content of the collection into the given array.

GetBytes ( ) : byte[]

Gets all bytes in the array

IndexOf ( byte b ) : int

Returns the index of the given byte.

Insert ( int index, byte b ) : void

Inserts a byte to the collection.

InsertRange ( int index, byte bs ) : void

Inserts a range of bytes to the collection.

Remove ( byte b ) : void

Removes a byte from the collection.

RemoveRange ( int index, int count ) : void

Removes a range of bytes from the collection.

ToArray ( ) : byte[]

Copies the content of the collection into an array.

this ( int index ) : byte

Gets or sets the value of a byte

메소드 상세

Add() 공개 메소드

Adds a byte into the collection.
public Add ( byte b ) : void
b byte the byte to add
리턴 void

AddRange() 공개 메소드

Adds a range of bytes to the collection.
public AddRange ( byte bs ) : void
bs byte the bytes to add
리턴 void

ByteCollection() 공개 메소드

Initializes a new instance of ByteCollection class.
public ByteCollection ( ) : System
리턴 System

ByteCollection() 공개 메소드

Initializes a new instance of ByteCollection class.
public ByteCollection ( byte bs ) : System
bs byte an array of bytes to add to collection
리턴 System

Contains() 공개 메소드

Returns true, if the byte exists in the collection.
public Contains ( byte b ) : bool
b byte
리턴 bool

CopyTo() 공개 메소드

Copies the content of the collection into the given array.
public CopyTo ( byte bs, int index ) : void
bs byte
index int
리턴 void

GetBytes() 공개 메소드

Gets all bytes in the array
public GetBytes ( ) : byte[]
리턴 byte[]

IndexOf() 공개 메소드

Returns the index of the given byte.
public IndexOf ( byte b ) : int
b byte
리턴 int

Insert() 공개 메소드

Inserts a byte to the collection.
public Insert ( int index, byte b ) : void
index int the index
b byte a byte to insert
리턴 void

InsertRange() 공개 메소드

Inserts a range of bytes to the collection.
public InsertRange ( int index, byte bs ) : void
index int the index of start byte
bs byte an array of bytes to insert
리턴 void

Remove() 공개 메소드

Removes a byte from the collection.
public Remove ( byte b ) : void
b byte the byte to remove
리턴 void

RemoveRange() 공개 메소드

Removes a range of bytes from the collection.
public RemoveRange ( int index, int count ) : void
index int the index of the start byte
count int the count of the bytes to remove
리턴 void

ToArray() 공개 메소드

Copies the content of the collection into an array.
public ToArray ( ) : byte[]
리턴 byte[]

this() 공개 메소드

Gets or sets the value of a byte
public this ( int index ) : byte
index int
리턴 byte