Class BDecodeNode
java.lang.Object
com.frostwire.jlibtorrent.BDecodeNode
-
Constructor Summary
ConstructorsConstructorDescriptionBDecodeNode(bdecode_node n, byte_vector buffer) Used to keep the buffer reference around. -
Method Summary
Modifier and TypeMethodDescriptionstatic BDecodeNodebdecode(byte[] data) buffer()This methods returns the internal buffer or null if it was constructed without one.longbooleanbooleanbooleanbooleanswig()toString()A JSON style string representation
-
Constructor Details
-
BDecodeNode
- Parameters:
n- the native object
-
BDecodeNode
Used to keep the buffer reference around.- Parameters:
n- the native objectbuffer- the buffer backing up the native object
-
-
Method Details
-
swig
- Returns:
- the native object
-
buffer
This methods returns the internal buffer or null if it was constructed without one.This also prevent premature garbage collection in case the node was created from a constructed buffer.
- Returns:
- the pinned buffer
-
toString
-
hasList
-
hasDict
-
hasString
-
hasInt
-
getList
-
getDict
-
getString
-
getInt
-
bdecode
-