C# Class fNbt.NbtByteArray

A tag containing an array of bytes.
Inheritance: NbtTag
Afficher le fichier Open project: fragmer/fNbt Class Usage Examples

Private Properties

Свойство Type Description
PrettyPrint void
ReadTag bool
SkipTag void
WriteData void
WriteTag void

Méthodes publiques

Méthode Description
Clone ( ) : object
NbtByteArray ( ) : System

Creates an unnamed NbtByte tag, containing an empty array of bytes.

NbtByteArray ( [ value ) : System

Creates an unnamed NbtByte tag, containing the given array of bytes.

Given byte array will be cloned. To avoid unnecessary copying, call one of the other constructor overloads (that do not take a byte[]) and then set the Value property yourself.

NbtByteArray ( [ tagName, [ value ) : System

Creates an NbtByte tag with the given name, containing the given array of bytes.

Given byte array will be cloned. To avoid unnecessary copying, call one of the other constructor overloads (that do not take a byte[]) and then set the Value property yourself.

this ( int tagIndex ) : byte

Gets or sets a byte at the given index.

Private Methods

Méthode Description
PrettyPrint ( StringBuilder sb, string indentString, int indentLevel ) : void
ReadTag ( NbtBinaryReader readStream ) : bool
SkipTag ( NbtBinaryReader readStream ) : void
WriteData ( NbtBinaryWriter writeStream ) : void
WriteTag ( NbtBinaryWriter writeStream ) : void

Method Details

Clone() public méthode

public Clone ( ) : object
Résultat object

NbtByteArray() public méthode

Creates an unnamed NbtByte tag, containing an empty array of bytes.
public NbtByteArray ( ) : System
Résultat System

NbtByteArray() public méthode

Creates an unnamed NbtByte tag, containing the given array of bytes.
Given byte array will be cloned. To avoid unnecessary copying, call one of the other constructor overloads (that do not take a byte[]) and then set the Value property yourself.
is null.
public NbtByteArray ( [ value ) : System
value [ Byte array to assign to this tag's Value. May not be null.
Résultat System

NbtByteArray() public méthode

Creates an NbtByte tag with the given name, containing the given array of bytes.
Given byte array will be cloned. To avoid unnecessary copying, call one of the other constructor overloads (that do not take a byte[]) and then set the Value property yourself.
is null.
public NbtByteArray ( [ tagName, [ value ) : System
tagName [ Name to assign to this tag. May be null.
value [ Byte array to assign to this tag's Value. May not be null.
Résultat System

this() public méthode

Gets or sets a byte at the given index.
is outside the array bounds.
public this ( int tagIndex ) : byte
tagIndex int The zero-based index of the element to get or set.
Résultat byte