This is experimental documentation.
Completes a DataBuffer implementation with the additional
data used by the BNCS protocol.

C# | Visual Basic | Visual C++ |
public sealed class BncsPacket : DataBuffer
Public NotInheritable Class BncsPacket _ Inherits DataBuffer
public ref class BncsPacket sealed : public DataBuffer

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | BncsPacket(Byte) |
Creates a new BNCS packet with the specified packet ID.
|
![]() | BncsPacket(BattleNetPacketId) | |
![]() | Count |
Gets the total number of bytes in this packet, including the four-byte header.
(Overrides DataBuffer.Count.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | 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.) |
![]() | GetData()()()() |
Gets the data in this packet, including the four-byte header.
(Overrides DataBuffer.GetData()()()().) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Insert(Boolean) |
Inserts the specified Boolean value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(Byte) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(SByte) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<Byte>[]()[][]) |
Inserts the specified byte array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<SByte>[]()[][]) |
Inserts the specified byte array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(Int16) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(UInt16) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<Int16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<UInt16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(Int32) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(UInt32) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<Int32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<UInt32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(Int64) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(UInt64) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<Int64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | Insert(array<UInt64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertBoolean(Boolean) |
Inserts the specified Boolean value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertByte(Byte) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertByteArray(array<Byte>[]()[][]) |
Inserts the specified byte array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertCString(String) |
Inserts the specified value into the buffer as a C-style null-terminated
ASCII string.
(Inherited from DataBuffer.) |
![]() | InsertCString(String, Encoding) |
Inserts the specified value into the buffer as a C-style null-terminated
string using the specified encoding.
(Inherited from DataBuffer.) |
![]() | InsertDwordString(String) |
Inserts the specified value into the buffer as a 32-bit-style string using
null bytes as the default padding.
(Inherited from DataBuffer.) |
![]() | InsertDwordString(String, Byte) |
Inserts the specified value into the buffer as a 32-bit-style string using
the specified byte as padding.
(Inherited from DataBuffer.) |
![]() | InsertInt16(Int16) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertInt16Array(array<Int16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertInt32(Int32) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertInt32Array(array<Int32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertInt64(Int64) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertInt64Array(array<Int64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertPascalString(String) |
Inserts the specified value into the buffer as a pascal-style ASCII string.
(Inherited from DataBuffer.) |
![]() | InsertPascalString(String, Encoding) |
Inserts the specified value into the buffer as a pascal-style string using
the specified encoding.
(Inherited from DataBuffer.) |
![]() | InsertSByte(SByte) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertSByteArray(array<SByte>[]()[][]) |
Inserts the specified byte array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt16(UInt16) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt16Array(array<UInt16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt32(UInt32) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt32Array(array<UInt32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt64(UInt64) |
Inserts the specified value into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertUInt64Array(array<UInt64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
(Inherited from DataBuffer.) |
![]() | InsertWidePascalString(String) |
Inserts the specified value into the buffer as a wide-pascal-style ASCII
string.
(Inherited from DataBuffer.) |
![]() | InsertWidePascalString(String, Encoding) |
Inserts the specified value into the buffer as a wide-pascal-style string
using the specified encoding.
(Inherited from DataBuffer.) |
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Packet | |
![]() | PacketID |
Gets or sets the ID of the packet as it was specified when it was created.
|
![]() | ToString()()()() |
Gets a hex representation of this buffer.
(Inherited from DataBuffer.) |
![]() | WriteToOutputStream(Stream) |
Writes the data currently contained in the buffer to the specified stream.
(Inherited from DataBuffer.) |

[C#] BncsPacket pckNull = new BncsPacket(0); sck.Send(pckNull.GetData(), 0, pckNull.Count, SocketFlags.None);
[Visual Basic] Dim pckNull As New BncsPacket(0) sck.Send(pckNull.GetData(), 0, pckNull.Count, SocketFlags.None)
[C++] BncsPacket ^pckNull = gcnew BncsPacket(0); sck->Send(pckNull->GetData(), 0, pckNull->Count, SocketFlags.None);

[C#] BncsPacket pckLogin = new BncsPacket(0x53); NLS nls = new NLS(userName, password); nls.LoginAccount(pckLogin); sck.Send(pckLogin.GetData(), 0, pckLogin.Count, SocketFlags.None);
[Visual Basic] Dim pckLogin As New BncsPacket(&H51) Dim nls As New NLS(userName, password) nls.LoginAccount(pckLogin) sck.Send(pckLogin.GetData(), 0, pckLogin.Count, SocketFlags.None)
[C++] // NOTE that userName and password must be System::String^, not char*! BncsPacket ^pckLogin = gcnew BncsPacket(0x51); NLS ^nls = gcnew NLS(userName, password); nls->LoginAccount(pckLogin) sck->Send(pckLogin->GetData(), 0, pckLogin->Count, SocketFlags.None);

Object | ||
![]() | DataBuffer | |
![]() | BncsPacket |
Assembly: Asgard5Library (Module: Asgard5Library)