-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
210 additions
and
449 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
src/com/frostwire/jlibtorrent/swig/SWIGTYPE_p_block_cache_reference.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
src/com/frostwire/jlibtorrent/swig/SWIGTYPE_p_chained_buffer__free_buffer_fun.java
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
src/com/frostwire/jlibtorrent/swig/block_cache_reference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* Do not make changes to this file unless you know what you are doing--modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package com.frostwire.jlibtorrent.swig; | ||
|
||
public class block_cache_reference { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected block_cache_reference(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(block_cache_reference obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
|
||
protected void finalize() { | ||
delete(); | ||
} | ||
|
||
public synchronized void delete() { | ||
if (swigCPtr != 0) { | ||
if (swigCMemOwn) { | ||
swigCMemOwn = false; | ||
libtorrent_jni.delete_block_cache_reference(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void setStorage(SWIGTYPE_p_void value) { | ||
libtorrent_jni.block_cache_reference_storage_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value)); | ||
} | ||
|
||
public SWIGTYPE_p_void getStorage() { | ||
long cPtr = libtorrent_jni.block_cache_reference_storage_get(swigCPtr, this); | ||
return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); | ||
} | ||
|
||
public void setPiece(int value) { | ||
libtorrent_jni.block_cache_reference_piece_set(swigCPtr, this, value); | ||
} | ||
|
||
public int getPiece() { | ||
return libtorrent_jni.block_cache_reference_piece_get(swigCPtr, this); | ||
} | ||
|
||
public void setBlock(int value) { | ||
libtorrent_jni.block_cache_reference_block_set(swigCPtr, this, value); | ||
} | ||
|
||
public int getBlock() { | ||
return libtorrent_jni.block_cache_reference_block_get(swigCPtr, this); | ||
} | ||
|
||
public block_cache_reference() { | ||
this(libtorrent_jni.new_block_cache_reference(), true); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.