|
RuneHive-Game
|
Public Member Functions | |
| Buffer (byte[] array) | |
| void | encodeRSA (BigInteger exponent, BigInteger modulus) |
| void | finishBitAccess () |
| int | getUIncrementalSmart () |
| void | initBitAccess () |
| void | method403 (int j) |
| int | method421 () |
| int | method422 () |
| void | method425 (int j) |
| byte | method429 () |
| byte | method430 () |
| int | method438 () |
| int | method439 () |
| int | method440 () |
| void | method441 (int i, byte[] abyte0, int j) |
| byte | peek () |
| int | read24Int () |
| int | readBigSmart2 () |
| int | readBits (int amount) |
| byte[] | readBytes () |
| byte[] | readBytes (final int length) |
| void | readBytes (int amount, int offset, byte[] destination) |
| float | readFloat () |
| int | readInt () |
| int | readLEShort () |
| int | readLEUShort () |
| int | readLEUShortA () |
| int | readMedium () |
| int | readNegUByte () |
| String | readNewString () |
| void | readReverseData (int i, int j, byte[] abyte0) |
| int | readShort () |
| int | readShort2 () |
| int | readShortOSRS () |
| int | readShortSmart () |
| byte | readSignedByte () |
| int | readSignedShort () |
| int | readSignedSmart () |
| int | readSignedWord () |
| int | readSmart () |
| String | readString () |
| String | readStringCp1252NullTerminated () |
| String | readStringNew () |
| int | readUByteA () |
| int | readUByteS () |
| int | readUnsignedByte () |
| int | readUnsignedInt () |
| int | readUnsignedIntSmartShortCompat () |
| long | readUnsignedLong () |
| int | readUnsignedShort () |
| int | readUnsignedShortSmart () |
| int | readUnsignedShortSmartMinusOne () |
| int | readUnsignedTriByte () |
| int | readUShort () |
| int | readUShortA () |
| int | readUSmart2 () |
| void | setOffset (int offset) |
| void | setPosition (int offset) |
| void | writeByte (int i) |
| void | writeBytes (byte[] abyte0, int i, int j) |
| void | writeBytes (int i) |
| void | writeDWord (int i) |
| void | writeDWordBigEndian (int i) |
| void | writeLEShort (int i) |
| void | writeLEShortA (int j) |
| void | writeNegatedByte (int i) |
| void | writeOpcode (int i) |
| void | writeQWord (long l) |
| void | writeShort (int i) |
| void | writeShortA (int j) |
| void | writeString (String s) |
Static Public Member Functions | |
| static String | decodeStringCp1252 (byte[] var0, int var1, int var2) |
| static Buffer | fromByteBuffer (final ByteBuffer byteBuffer) |
Public Attributes | |
| byte[] | array |
| int | bitPosition |
| IsaacCipher | encryption |
| int | position |
Static Public Attributes | |
| static final char[] | cp1252AsciiExtension = new char[]{'€', '\u0000', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', '\u0000', 'Ž', '\u0000', '\u0000', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '\u0000', 'ž', 'Ÿ'} |
Package Functions | |
| final int | v (int i) |
Private Member Functions | |
| Buffer () | |
Static Private Attributes | |
| static int | anInt1412 |
| static final int[] | BIT_MASK = {0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 0x1ffff, 0x3ffff, 0x7ffff, 0xfffff, 0x1fffff, 0x3fffff, 0x7fffff, 0xffffff, 0x1ffffff, 0x3ffffff, 0x7ffffff, 0xfffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, -1} |
Definition at line 8 of file Buffer.java.
|
private |
Definition at line 104 of file Buffer.java.
Referenced by fromByteBuffer().
| com.runehive.fs.cache.decoder.Buffer.Buffer | ( | byte[] | array | ) |
Definition at line 107 of file Buffer.java.
|
static |
Definition at line 312 of file Buffer.java.
References cp1252AsciiExtension.
Referenced by readStringCp1252NullTerminated().
| void com.runehive.fs.cache.decoder.Buffer.encodeRSA | ( | BigInteger | exponent, |
| BigInteger | modulus ) |
Definition at line 395 of file Buffer.java.
References position, readBytes(), writeByte(), and writeBytes().
| void com.runehive.fs.cache.decoder.Buffer.finishBitAccess | ( | ) |
Definition at line 375 of file Buffer.java.
References bitPosition, and position.
|
static |
Definition at line 112 of file Buffer.java.
References array, and Buffer().
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.unpackConfig().
| int com.runehive.fs.cache.decoder.Buffer.getUIncrementalSmart | ( | ) |
Definition at line 270 of file Buffer.java.
References method422().
| void com.runehive.fs.cache.decoder.Buffer.initBitAccess | ( | ) |
Definition at line 350 of file Buffer.java.
References bitPosition, and position.
| void com.runehive.fs.cache.decoder.Buffer.method403 | ( | int | j | ) |
Definition at line 181 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.method421 | ( | ) |
Definition at line 379 of file Buffer.java.
References array, position, readUnsignedByte(), and readUnsignedShort().
| int com.runehive.fs.cache.decoder.Buffer.method422 | ( | ) |
Definition at line 387 of file Buffer.java.
References array, position, readUnsignedByte(), and readUnsignedShort().
Referenced by getUIncrementalSmart(), and readUSmart2().
| void com.runehive.fs.cache.decoder.Buffer.method425 | ( | int | j | ) |
Definition at line 412 of file Buffer.java.
| byte com.runehive.fs.cache.decoder.Buffer.method429 | ( | ) |
Definition at line 428 of file Buffer.java.
| byte com.runehive.fs.cache.decoder.Buffer.method430 | ( | ) |
Definition at line 432 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.method438 | ( | ) |
Definition at line 474 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.method439 | ( | ) |
Definition at line 482 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.method440 | ( | ) |
Definition at line 487 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.method441 | ( | int | i, |
| byte[] | abyte0, | ||
| int | j ) |
Definition at line 492 of file Buffer.java.
| byte com.runehive.fs.cache.decoder.Buffer.peek | ( | ) |
Definition at line 231 of file Buffer.java.
References array, and position.
Referenced by readBigSmart2(), readShortSmart(), readSignedSmart(), readUnsignedShortSmart(), and readUnsignedShortSmartMinusOne().
| int com.runehive.fs.cache.decoder.Buffer.read24Int | ( | ) |
Definition at line 53 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readBigSmart2 | ( | ) |
Definition at line 242 of file Buffer.java.
References peek(), readInt(), and readUnsignedShort().
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode().
| int com.runehive.fs.cache.decoder.Buffer.readBits | ( | int | amount | ) |
Definition at line 354 of file Buffer.java.
References array, BIT_MASK, and bitPosition.
| byte[] com.runehive.fs.cache.decoder.Buffer.readBytes | ( | ) |
Definition at line 337 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode(), and encodeRSA().
| byte[] com.runehive.fs.cache.decoder.Buffer.readBytes | ( | final int | length | ) |
Definition at line 508 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.readBytes | ( | int | amount, |
| int | offset, | ||
| byte[] | destination ) |
Definition at line 345 of file Buffer.java.
| float com.runehive.fs.cache.decoder.Buffer.readFloat | ( | ) |
Definition at line 504 of file Buffer.java.
References readInt().
| int com.runehive.fs.cache.decoder.Buffer.readInt | ( | ) |
Definition at line 70 of file Buffer.java.
References array, and position.
Referenced by readBigSmart2(), and readFloat().
| int com.runehive.fs.cache.decoder.Buffer.readLEShort | ( | ) |
Definition at line 466 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readLEUShort | ( | ) |
Definition at line 451 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readLEUShortA | ( | ) |
Definition at line 461 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readMedium | ( | ) |
Definition at line 58 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readNegUByte | ( | ) |
Definition at line 420 of file Buffer.java.
| String com.runehive.fs.cache.decoder.Buffer.readNewString | ( | ) |
Definition at line 147 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.readReverseData | ( | int | i, |
| int | j, | ||
| byte[] | abyte0 ) |
Definition at line 498 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readShort | ( | ) |
Definition at line 78 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readShort2 | ( | ) |
Definition at line 29 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readShortOSRS | ( | ) |
Definition at line 89 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readShortSmart | ( | ) |
Definition at line 47 of file Buffer.java.
References array, peek(), position, readUnsignedByte(), and readUnsignedShort().
| byte com.runehive.fs.cache.decoder.Buffer.readSignedByte | ( | ) |
Definition at line 252 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode().
| int com.runehive.fs.cache.decoder.Buffer.readSignedShort | ( | ) |
Definition at line 38 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readSignedSmart | ( | ) |
Definition at line 223 of file Buffer.java.
References peek(), readUnsignedByte(), and readUnsignedShort().
| int com.runehive.fs.cache.decoder.Buffer.readSignedWord | ( | ) |
Definition at line 261 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readSmart | ( | ) |
Definition at line 15 of file Buffer.java.
References array, position, readUnsignedByte(), and readUShort().
| String com.runehive.fs.cache.decoder.Buffer.readString | ( | ) |
Definition at line 295 of file Buffer.java.
| String com.runehive.fs.cache.decoder.Buffer.readStringCp1252NullTerminated | ( | ) |
Definition at line 301 of file Buffer.java.
References array, decodeStringCp1252(), and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode().
| String com.runehive.fs.cache.decoder.Buffer.readStringNew | ( | ) |
Definition at line 22 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readUByteA | ( | ) |
Definition at line 416 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readUByteS | ( | ) |
Definition at line 424 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedByte | ( | ) |
Definition at line 219 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode(), method421(), method422(), readShortSmart(), readSignedSmart(), readSmart(), readUnsignedShortSmart(), and readUnsignedShortSmartMinusOne().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedInt | ( | ) |
Definition at line 284 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode(), and readUnsignedLong().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedIntSmartShortCompat | ( | ) |
Definition at line 124 of file Buffer.java.
References readUnsignedShortSmart().
| long com.runehive.fs.cache.decoder.Buffer.readUnsignedLong | ( | ) |
Definition at line 289 of file Buffer.java.
References readUnsignedInt().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedShort | ( | ) |
Definition at line 256 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode(), method421(), method422(), readBigSmart2(), readShortSmart(), readSignedSmart(), readUnsignedShortSmart(), readUnsignedShortSmartMinusOne(), and com.runehive.fs.cache.decoder.CacheNpcDefinition.unpackConfig().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedShortSmart | ( | ) |
Definition at line 118 of file Buffer.java.
References peek(), readUnsignedByte(), and readUnsignedShort().
Referenced by readUnsignedIntSmartShortCompat().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedShortSmartMinusOne | ( | ) |
Definition at line 236 of file Buffer.java.
References peek(), readUnsignedByte(), and readUnsignedShort().
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode().
| int com.runehive.fs.cache.decoder.Buffer.readUnsignedTriByte | ( | ) |
Definition at line 279 of file Buffer.java.
References array, and position.
Referenced by com.runehive.fs.cache.decoder.CacheNpcDefinition.decode().
| int com.runehive.fs.cache.decoder.Buffer.readUShort | ( | ) |
Definition at line 64 of file Buffer.java.
References array, and position.
Referenced by readSmart().
| int com.runehive.fs.cache.decoder.Buffer.readUShortA | ( | ) |
Definition at line 456 of file Buffer.java.
| int com.runehive.fs.cache.decoder.Buffer.readUSmart2 | ( | ) |
Definition at line 138 of file Buffer.java.
References method422().
| void com.runehive.fs.cache.decoder.Buffer.setOffset | ( | int | offset | ) |
Definition at line 11 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.setPosition | ( | int | offset | ) |
Definition at line 522 of file Buffer.java.
|
package |
Definition at line 99 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeByte | ( | int | i | ) |
Definition at line 159 of file Buffer.java.
References array, and position.
Referenced by encodeRSA().
| void com.runehive.fs.cache.decoder.Buffer.writeBytes | ( | byte[] | abyte0, |
| int | i, | ||
| int | j ) |
Definition at line 210 of file Buffer.java.
References array, and position.
Referenced by encodeRSA().
| void com.runehive.fs.cache.decoder.Buffer.writeBytes | ( | int | i | ) |
Definition at line 215 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeDWord | ( | int | i | ) |
Definition at line 174 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeDWordBigEndian | ( | int | i | ) |
Definition at line 168 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeLEShort | ( | int | i | ) |
Definition at line 436 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeLEShortA | ( | int | j | ) |
Definition at line 446 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeNegatedByte | ( | int | i | ) |
Definition at line 408 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeOpcode | ( | int | i | ) |
Definition at line 154 of file Buffer.java.
References array, encryption, and position.
| void com.runehive.fs.cache.decoder.Buffer.writeQWord | ( | long | l | ) |
Definition at line 188 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeShort | ( | int | i | ) |
Definition at line 163 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeShortA | ( | int | j | ) |
Definition at line 441 of file Buffer.java.
| void com.runehive.fs.cache.decoder.Buffer.writeString | ( | String | s | ) |
Definition at line 203 of file Buffer.java.
|
staticprivate |
Definition at line 520 of file Buffer.java.
| byte [] com.runehive.fs.cache.decoder.Buffer.array |
Definition at line 515 of file Buffer.java.
Referenced by Buffer(), fromByteBuffer(), method403(), method421(), method422(), method425(), method429(), method430(), method438(), method439(), method440(), method441(), peek(), read24Int(), readBits(), readBytes(), readBytes(), readBytes(), readInt(), readLEShort(), readLEUShort(), readLEUShortA(), readMedium(), readNegUByte(), readNewString(), readReverseData(), readShort(), readShort2(), readShortOSRS(), readShortSmart(), readSignedByte(), readSignedShort(), readSignedWord(), readSmart(), readString(), readStringCp1252NullTerminated(), readStringNew(), readUByteA(), readUByteS(), readUnsignedByte(), readUnsignedInt(), readUnsignedShort(), readUnsignedTriByte(), readUShort(), readUShortA(), v(), writeByte(), writeBytes(), writeBytes(), writeDWord(), writeDWordBigEndian(), writeLEShort(), writeLEShortA(), writeNegatedByte(), writeOpcode(), writeQWord(), writeShort(), writeShortA(), and writeString().
|
staticprivate |
Definition at line 518 of file Buffer.java.
Referenced by readBits().
| int com.runehive.fs.cache.decoder.Buffer.bitPosition |
Definition at line 517 of file Buffer.java.
Referenced by finishBitAccess(), initBitAccess(), and readBits().
|
static |
Definition at line 335 of file Buffer.java.
Referenced by decodeStringCp1252().
| IsaacCipher com.runehive.fs.cache.decoder.Buffer.encryption |
Definition at line 519 of file Buffer.java.
Referenced by writeOpcode().
| int com.runehive.fs.cache.decoder.Buffer.position |
Definition at line 516 of file Buffer.java.
Referenced by Buffer(), encodeRSA(), finishBitAccess(), initBitAccess(), method403(), method421(), method422(), method425(), method429(), method430(), method438(), method439(), method440(), method441(), peek(), read24Int(), readBytes(), readBytes(), readBytes(), readInt(), readLEShort(), readLEUShort(), readLEUShortA(), readMedium(), readNegUByte(), readNewString(), readReverseData(), readShort(), readShort2(), readShortOSRS(), readShortSmart(), readSignedByte(), readSignedShort(), readSignedWord(), readSmart(), readString(), readStringCp1252NullTerminated(), readStringNew(), readUByteA(), readUByteS(), readUnsignedByte(), readUnsignedInt(), readUnsignedShort(), readUnsignedTriByte(), readUShort(), readUShortA(), v(), writeByte(), writeBytes(), writeBytes(), writeDWord(), writeDWordBigEndian(), writeLEShort(), writeLEShortA(), writeNegatedByte(), writeOpcode(), writeQWord(), writeShort(), writeShortA(), and writeString().