Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lucene / include / org / apache / lucene / util / ByteBlockPool.h
Size: Mime:
#ifndef org_apache_lucene_util_ByteBlockPool_H
#define org_apache_lucene_util_ByteBlockPool_H

#include "java/lang/Object.h"

namespace org {
  namespace apache {
    namespace lucene {
      namespace util {
        class ByteBlockPool$Allocator;
        class BytesRef;
      }
    }
  }
}
namespace java {
  namespace lang {
    class Class;
  }
}
template<class T> class JArray;

namespace org {
  namespace apache {
    namespace lucene {
      namespace util {

        class ByteBlockPool : public ::java::lang::Object {
         public:
          enum {
            mid_init$_bc3d0e463c556af9,
            mid_allocSlice_114bd87cc0521d44,
            mid_append_56afe0077fbf95be,
            mid_newSlice_898568c95ed890a7,
            mid_nextBuffer_d7775b228e076e62,
            mid_readByte_28c5460027b89ec6,
            mid_readBytes_418be3700bac6059,
            mid_reset_d7775b228e076e62,
            mid_reset_184a5deebe69ba89,
            mid_setBytesRef_7e936169e54d08ca,
            mid_setRawBytesRef_754947e4d08fc1f4,
            max_mid
          };

          enum {
            fid_buffer,
            fid_buffers,
            fid_byteOffset,
            fid_byteUpto,
            max_fid
          };

          static ::java::lang::Class *class$;
          static jmethodID *mids$;
          static jfieldID *fids$;
          static bool live$;
          static jclass initializeClass(bool);

          explicit ByteBlockPool(jobject obj) : ::java::lang::Object(obj) {
            if (obj != NULL && mids$ == NULL)
              env->getClass(initializeClass);
          }
          ByteBlockPool(const ByteBlockPool& obj) : ::java::lang::Object(obj) {}

          static jint BYTE_BLOCK_MASK;
          static jint BYTE_BLOCK_SHIFT;
          static jint BYTE_BLOCK_SIZE;
          static jint FIRST_LEVEL_SIZE;
          static JArray< jint > *LEVEL_SIZE_ARRAY;
          static JArray< jint > *NEXT_LEVEL_ARRAY;

          JArray< jbyte > _get_buffer() const;
          void _set_buffer(const JArray< jbyte > &) const;
          JArray< JArray< jbyte > > _get_buffers() const;
          void _set_buffers(const JArray< JArray< jbyte > > &) const;
          jint _get_byteOffset() const;
          void _set_byteOffset(jint) const;
          jint _get_byteUpto() const;
          void _set_byteUpto(jint) const;

          ByteBlockPool(const ::org::apache::lucene::util::ByteBlockPool$Allocator &);

          jint allocSlice(const JArray< jbyte > &, jint) const;
          void append(const ::org::apache::lucene::util::BytesRef &) const;
          jint newSlice(jint) const;
          void nextBuffer() const;
          jbyte readByte(jlong) const;
          void readBytes(jlong, const JArray< jbyte > &, jint, jint) const;
          void reset() const;
          void reset(jboolean, jboolean) const;
          void setBytesRef(const ::org::apache::lucene::util::BytesRef &, jint) const;
          void setRawBytesRef(const ::org::apache::lucene::util::BytesRef &, jlong) const;
        };
      }
    }
  }
}

#include <Python.h>

namespace org {
  namespace apache {
    namespace lucene {
      namespace util {
        extern PyType_Def PY_TYPE_DEF(ByteBlockPool);
        extern PyTypeObject *PY_TYPE(ByteBlockPool);

        class t_ByteBlockPool {
        public:
          PyObject_HEAD
          ByteBlockPool object;
          static PyObject *wrap_Object(const ByteBlockPool&);
          static PyObject *wrap_jobject(const jobject&);
          static void install(PyObject *module);
          static void initialize(PyObject *module);
        };
      }
    }
  }
}

#endif