summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/runtime/PersistentByteMap.h
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /libjava/gnu/gcj/runtime/PersistentByteMap.h
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'libjava/gnu/gcj/runtime/PersistentByteMap.h')
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap.h b/libjava/gnu/gcj/runtime/PersistentByteMap.h
new file mode 100644
index 000000000..1bac1d2c0
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap.h
@@ -0,0 +1,115 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap__
+#define __gnu_gcj_runtime_PersistentByteMap__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap;
+ class PersistentByteMap$AccessMode;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace nio
+ {
+ class MappedByteBuffer;
+ namespace channels
+ {
+ class FileChannel;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap : public ::java::lang::Object
+{
+
+ PersistentByteMap(::java::io::File *);
+public:
+ PersistentByteMap(::java::lang::String *, ::gnu::gcj::runtime::PersistentByteMap$AccessMode *);
+ PersistentByteMap(::java::io::File *, ::gnu::gcj::runtime::PersistentByteMap$AccessMode *);
+private:
+ void init(::gnu::gcj::runtime::PersistentByteMap *, ::java::io::File *, jint, jint);
+public:
+ static ::gnu::gcj::runtime::PersistentByteMap * emptyPersistentByteMap(::java::io::File *, jint, jint);
+private:
+ jint getWord(jint);
+ void putWord(jint, jint);
+public:
+ virtual ::java::util::Set * entrySet();
+private:
+ jint getBucket(jint);
+ jint getKeyPos(jint);
+ jint getValuePos(jint);
+ void putKeyPos(jint, jint);
+ void putValuePos(jint, jint);
+ JArray< jbyte > * getBytes(jint);
+ jint hash(JArray< jbyte > *);
+public:
+ virtual JArray< jbyte > * get(JArray< jbyte > *);
+ virtual void put(JArray< jbyte > *, JArray< jbyte > *);
+private:
+ jint addBytes(JArray< jbyte > *);
+public:
+ virtual ::java::util::Iterator * iterator(jint);
+ virtual jint size();
+ virtual jint stringTableSize();
+ virtual jint capacity();
+ virtual void force();
+ virtual ::java::io::File * getFile();
+ virtual void close();
+ virtual void putAll(::gnu::gcj::runtime::PersistentByteMap *);
+public: // actually package-private
+ static jint access$0(::gnu::gcj::runtime::PersistentByteMap *);
+ static jint access$1(::gnu::gcj::runtime::PersistentByteMap *);
+ static jint access$2(::gnu::gcj::runtime::PersistentByteMap *, jint);
+ static jint access$3(::gnu::gcj::runtime::PersistentByteMap *, jint);
+ static JArray< jbyte > * access$4(::gnu::gcj::runtime::PersistentByteMap *, jint);
+private:
+ ::java::nio::MappedByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buf;
+ static const jint MAGIC = 0;
+ static const jint VERSION = 4;
+ static const jint CAPACITY = 8;
+ static const jint TABLE_BASE = 12;
+ static const jint STRING_BASE = 16;
+ static const jint STRING_SIZE = 20;
+ static const jint FILE_SIZE = 24;
+ static const jint ELEMENTS = 28;
+ static const jint INT_SIZE = 4;
+ static const jint TABLE_ENTRY_SIZE = 8;
+ jint capacity__;
+ jint table_base;
+ jint string_base;
+ jint string_size;
+ jint file_size;
+ jint elements;
+ jlong length;
+ ::java::io::File * name;
+ static const jint UNUSED_ENTRY = -1;
+public:
+ static const jint KEYS = 0;
+ static const jint VALUES = 1;
+ static const jint ENTRIES = 2;
+private:
+ ::java::util::HashMap * values;
+public: // actually package-private
+ ::java::nio::channels::FileChannel * fc;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap__