C# Класс System.Windows.Forms.ByteCollection

Represents a collection of bytes.
Наследование: System.Collections.CollectionBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( bool 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 ( bool b ) : bool
b bool
Результат 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