[This is preliminary documentation and is subject to change.]
Packet struct, just a wrapper for a byte array.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
public struct Packet
Members
| All Members | Constructors | Fields | Properties | Methods |
| Member | Description | |
|---|---|---|
| Packet(array<Byte>[]()[][]) | Initializes a new instance of the Packet class | |
| Packet(OpCode) | Creates a packet of correct size for a given opcode,
and sets the first (opcode) byte. | |
| Data | ||
| Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Returns the hash code for this instance.
(Inherited from ValueType.) | |
| GetSize(OpCode) | Returns packet size (in bytes) for a given opcode.
Size includes the opcode byte itself. | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OpCode | ||
| ToString()()()() |
Returns the fully qualified type name of this instance.
(Inherited from ValueType.) |