From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/core/FastDataInput.java | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 NET/worlds/core/FastDataInput.java (limited to 'NET/worlds/core/FastDataInput.java') diff --git a/NET/worlds/core/FastDataInput.java b/NET/worlds/core/FastDataInput.java new file mode 100644 index 0000000..edc2668 --- /dev/null +++ b/NET/worlds/core/FastDataInput.java @@ -0,0 +1,77 @@ +/* */ package NET.worlds.core; +/* */ +/* */ import java.io.DataInput; +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class FastDataInput +/* */ implements DataInput +/* */ { +/* */ private int nativeInfo; +/* */ +/* */ public FastDataInput(String fileName) +/* */ throws IOException +/* */ { +/* 20 */ nativeInit(); +/* 21 */ read(fileName); +/* */ } +/* */ +/* */ +/* */ public native void close(); +/* */ +/* */ public void readFully(byte[] b) +/* */ throws IOException +/* */ { +/* 30 */ readFully(b, 0, b.length); +/* */ } +/* */ +/* */ public static native void nativeInit(); +/* */ +/* */ public native void readFully(byte[] paramArrayOfByte, int paramInt1, int paramInt2) +/* */ throws IOException; +/* */ +/* */ public native int skipBytes(int paramInt) throws IOException; +/* */ +/* */ public native boolean readBoolean() throws IOException; +/* */ +/* */ public native byte readByte() throws IOException; +/* */ +/* */ public native int readUnsignedByte() throws IOException; +/* */ +/* */ public native short readShort() throws IOException; +/* */ +/* */ public native int readUnsignedShort() throws IOException; +/* */ +/* */ public native char readChar() throws IOException; +/* */ +/* */ public native int readInt() throws IOException; +/* */ +/* */ public native long readLong() throws IOException; +/* */ +/* */ public native float readFloat() throws IOException; +/* */ +/* */ public native double readDouble() throws IOException; +/* */ +/* */ public String readLine() throws IOException +/* */ { +/* 62 */ if (!$assertionsDisabled) throw new AssertionError(); +/* 63 */ return null; +/* */ } +/* */ +/* */ public native String readUTF() +/* */ throws IOException; +/* */ +/* */ private native void read(String paramString) +/* */ throws IOException; +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\core\FastDataInput.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3