C# Class System.Windows.Forms.ByteCollection

Represents a collection of bytes.
Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: Zepheus/Fiesta_Utils Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Add() public méthode

Adds a byte into the collection.
public Add ( byte b ) : void
b byte the byte to add
Résultat void

AddRange() public méthode

Adds a range of bytes to the collection.
public AddRange ( byte bs ) : void
bs byte the bytes to add
Résultat void

ByteCollection() public méthode

Initializes a new instance of ByteCollection class.
public ByteCollection ( ) : System
Résultat System

ByteCollection() public méthode

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

Contains() public méthode

Returns true, if the byte exists in the collection.
public Contains ( bool b ) : bool
b bool
Résultat bool

CopyTo() public méthode

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

GetBytes() public méthode

Gets all bytes in the array
public GetBytes ( ) : byte[]
Résultat byte[]

IndexOf() public méthode

Returns the index of the given byte.
public IndexOf ( byte b ) : int
b byte
Résultat int

Insert() public méthode

Inserts a byte to the collection.
public Insert ( int index, byte b ) : void
index int the index
b byte a byte to insert
Résultat void

InsertRange() public méthode

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
Résultat void

Remove() public méthode

Removes a byte from the collection.
public Remove ( byte b ) : void
b byte the byte to remove
Résultat void

RemoveRange() public méthode

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
Résultat void

ToArray() public méthode

Copies the content of the collection into an array.
public ToArray ( ) : byte[]
Résultat byte[]

this() public méthode

Gets or sets the value of a byte
public this ( int index ) : byte
index int
Résultat byte