C# Class OpenStory.Common.IO.Flags

An abstract class for bit-based flag arrays.
Exibir arquivo Open project: shoftee/OpenStory Class Usage Examples

Public Methods

Method Description
Read ( IUnsafePacketReader reader ) : void

Reads the flag bits from the specified IUnsafePacketReader.

Write ( IPacketBuilder builder ) : void

Writes the flag bits into the specified IPacketBuilder.

Protected Methods

Method Description
Flags ( Flags other ) : System

Initializes a new instance of the Flags class.

Flags ( int capacity ) : System

Initializes a new instance of the Flags class.

this ( int index ) : bool

Gets or sets the flag value at an index.

Method Details

Flags() protected method

Initializes a new instance of the Flags class.
Thrown if is .
protected Flags ( Flags other ) : System
other Flags The instance to copy from.
return System

Flags() protected method

Initializes a new instance of the Flags class.
Thrown if is non-positive.
protected Flags ( int capacity ) : System
capacity int The length of the bit array.
return System

Read() public abstract method

Reads the flag bits from the specified IUnsafePacketReader.
public abstract Read ( IUnsafePacketReader reader ) : void
reader IUnsafePacketReader The reader to use.
return void

Write() public abstract method

Writes the flag bits into the specified IPacketBuilder.
public abstract Write ( IPacketBuilder builder ) : void
builder IPacketBuilder The builder to write the bits into.
return void

this() protected method

Gets or sets the flag value at an index.
protected this ( int index ) : bool
index int The index of the flag.
return bool