C# Class BinTreeNodeWriter, whatsapp-desktop-client

Exibir arquivo Open project: sambulosenda/whatsapp-desktop-client Class Usage Examples

Public Methods

Method Description
BinTreeNodeWriter ( string dict ) : System
StartStream ( string domain, string resource ) : byte[]
Write ( ProtocolTreeNode, node, bool encrypt = true ) : byte[]

Protected Methods

Method Description
flushBuffer ( bool encrypt = true ) : byte[]
writeAttributes ( IEnumerable attributes ) : void
writeBytes ( byte bytes ) : void
writeBytes ( string bytes ) : void
writeInt16 ( int v ) : void
writeInt24 ( int v ) : void
writeInt8 ( int v ) : void
writeInternal ( ProtocolTreeNode, node ) : void
writeJid ( string user, string server ) : void
writeListStart ( int len ) : void
writeString ( string tag ) : void
writeToken ( int token ) : void

Private Methods

Method Description
GetInt16 ( int len ) : byte[]
GetInt24 ( int len ) : byte[]

Method Details

BinTreeNodeWriter() public method

public BinTreeNodeWriter ( string dict ) : System
dict string
return System

StartStream() public method

public StartStream ( string domain, string resource ) : byte[]
domain string
resource string
return byte[]

Write() public method

public Write ( ProtocolTreeNode, node, bool encrypt = true ) : byte[]
node ProtocolTreeNode,
encrypt bool
return byte[]

flushBuffer() protected method

protected flushBuffer ( bool encrypt = true ) : byte[]
encrypt bool
return byte[]

writeAttributes() protected method

protected writeAttributes ( IEnumerable attributes ) : void
attributes IEnumerable
return void

writeBytes() protected method

protected writeBytes ( byte bytes ) : void
bytes byte
return void

writeBytes() protected method

protected writeBytes ( string bytes ) : void
bytes string
return void

writeInt16() protected method

protected writeInt16 ( int v ) : void
v int
return void

writeInt24() protected method

protected writeInt24 ( int v ) : void
v int
return void

writeInt8() protected method

protected writeInt8 ( int v ) : void
v int
return void

writeInternal() protected method

protected writeInternal ( ProtocolTreeNode, node ) : void
node ProtocolTreeNode,
return void

writeJid() protected method

protected writeJid ( string user, string server ) : void
user string
server string
return void

writeListStart() protected method

protected writeListStart ( int len ) : void
len int
return void

writeString() protected method

protected writeString ( string tag ) : void
tag string
return void

writeToken() protected method

protected writeToken ( int token ) : void
token int
return void