/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.2 * * 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 pascal_string { private long swigCPtr; protected boolean swigCMemOwn; protected pascal_string(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(pascal_string 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_pascal_string(swigCPtr); } swigCPtr = 0; } } public pascal_string(String p, int l) { this(libtorrent_jni.new_pascal_string(p, l), true); } public void setLen(int value) { libtorrent_jni.pascal_string_len_set(swigCPtr, this, value); } public int getLen() { return libtorrent_jni.pascal_string_len_get(swigCPtr, this); } public void setPtr(String value) { libtorrent_jni.pascal_string_ptr_set(swigCPtr, this, value); } public String getPtr() { return libtorrent_jni.pascal_string_ptr_get(swigCPtr, this); } public boolean op_lt(pascal_string rhs) { return libtorrent_jni.pascal_string_op_lt(swigCPtr, this, pascal_string.getCPtr(rhs), rhs); } }