C# Class WhatsAppApi.Helper.BinTreeNodeWriter

Mostra file Open project: kwailo888/AxolotlTestApp Class Usage Examples

Public Properties

Property Type Description
Key WhatsAppApi.Helper.KeyStream

Public Methods

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

Protected Methods

Method Description
DebugPrint ( string debugMsg ) : void
flushBuffer ( bool encrypt = true ) : byte[]
writeAttributes ( IEnumerable attributes ) : void
writeBytes ( byte bytes ) : void
writeBytes ( string bytes ) : void
writeInt16 ( int v ) : void
writeInt20 ( int v ) : void
writeInt24 ( int v ) : void
writeInt31 ( 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 ( ) : System
return System

DebugPrint() protected method

protected DebugPrint ( string debugMsg ) : void
debugMsg string
return void

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

writeInt20() protected method

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

writeInt24() protected method

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

writeInt31() protected method

protected writeInt31 ( 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

Property Details

Key public_oe property

public KeyStream,WhatsAppApi.Helper Key
return WhatsAppApi.Helper.KeyStream