Collin Smith
683d592c55
Created placeholder documentation to document relationship between input classes
2020-08-08 14:26:25 -07:00
Collin Smith
83ead2a990
Reduced #bitInput() method visibility -- unalign should be used instead outside of package
2020-08-08 14:24:47 -07:00
Collin Smith
f7a38d5e15
Documented ByteInput#bitInput(BitInput) invariants
2020-08-08 14:18:33 -07:00
Collin Smith
75ac29d698
Created bitInput() accessor to manage BitInput initialization and access
2020-08-08 14:15:51 -07:00
Collin Smith
20ae623fe7
Tightened up field visibility
...
Tightened up field visibility
ByteInput#bitInput set via bitInput(BitInput) which enforces invariants
2020-08-08 14:08:26 -07:00
Collin Smith
afd7bafa12
Fixed skipBits multi-byte using unaligned bit stream
2020-08-08 13:17:59 -07:00
Collin Smith
e62d3ec383
ByteInput#skipBytes now increments bitsRead
2020-08-08 12:04:51 -07:00
Collin Smith
99f0c11064
Created static factory method for constructing a BitInput from a byte array
2020-08-08 11:50:59 -07:00
Collin Smith
a244fbd09d
Changed access to private
2020-08-08 11:48:01 -07:00
Collin Smith
f5ababed84
Renamed discard methods to skip
2020-08-08 11:45:37 -07:00
Collin Smith
f71d32bc51
Removed interfaces and added documentation to BitInput and ByteInput directly
2020-08-08 11:44:26 -07:00
Collin Smith
3e31869417
Fixed NPE caused by lazily initializing BitInput
2020-08-08 10:51:50 -07:00
Collin Smith
1868a8c089
Renamed discard methods to more explicit ByteInput#discardBytes and BitInput#discardBits
2020-08-08 03:49:36 -07:00
Collin Smith
3e6e2c05ce
Changed ByteInput to lazily allocate BitInput object
...
BitInput not always required, mostly only ByteInput is used
Removed specialized BitInput constructors from ByteInput
ByteInput#unalign will allocate a BitInput of readableBytes size
BitInput#readSlice will allocate a BitInput of specified size
2020-08-08 03:47:36 -07:00
Collin Smith
673b437c61
Committing com.riiablo.io.nio experiment
...
Replaces com.riiablo.io if I decide to go this route
2020-08-08 01:07:28 -07:00
Collin Smith
dd1444ad9a
Created com.riiablo.io with BitInput
...
Version 1 without full functionality
2020-08-07 12:17:54 -07:00
Collin Smith
cfb2850d92
Created more robust BitStream implementation
...
Pending validation, will deprecate and replace com.riiablo.codec.util.BitStream
2020-08-05 19:57:54 -07:00
Collin Smith
84748c56a3
Implemented skipUntil function to allow recovery attempts
...
skipUntil will align the bit stream to next byte and search for a 2 byte signature
2020-08-03 20:21:46 -07:00
Collin Smith
294f74dde3
Added warnf without Throwable arg
2020-08-03 20:17:28 -07:00
Collin Smith
65a8dee1eb
Removed readU8 and replaced with equivalent appropriate substitutions
2020-08-03 16:29:21 -07:00
Collin Smith
0050720249
Implemented some use-cases for readRaw
...
Implemented some use-cases for readRaw and readU63
Replaced some Java primitive size consts with actual bit sizes according to d2 spec
2020-08-03 16:22:28 -07:00
Collin Smith
a0a46dc481
Changed DCC outsizeCoded from int to long to ensure it can hold a u32
2020-08-03 16:20:32 -07:00
Collin Smith
af480bdfc3
Created readRaw(int) and added support for correctly reading signed 64 bits
2020-08-03 16:12:52 -07:00
Collin Smith
d1ee547530
Created BitStream#readU63(int)
2020-08-03 16:11:59 -07:00
Collin Smith
55d1f18463
Renamed readUnsigned8OrLess to readU8
2020-08-03 16:06:05 -07:00
Collin Smith
8c9d51ee03
Renamed readUnsigned31OrLess to readU31
2020-08-03 16:04:46 -07:00
Collin Smith
10f8945ddb
Renamed readUnsigned15OrLess to readU15
2020-08-03 16:03:45 -07:00
Collin Smith
70200c5521
Renamed readUnsigned7OrLess to readU7
2020-08-03 16:02:56 -07:00
Collin Smith
a8e2402a19
Disabled skipping of item byte stream signature
...
ItemSerializer will process and validate item signature
Implemented far more robust logging to ItemSerializer
2020-08-02 11:11:59 -07:00
Collin Smith
e8f359ffa2
Changed return type of readSigned from sign extended int to long
2020-07-28 04:59:49 -07:00
Collin Smith
5f2c2ca999
Removed read*BitsOrLess and replaced with casted readUnsigned
2020-07-28 04:54:28 -07:00
Collin Smith
940addbca1
Improved assertion messages
2020-07-28 04:46:34 -07:00
Collin Smith
fa2594048c
Function ordering
2020-07-28 04:38:36 -07:00
Collin Smith
148a8e108e
Validate bit args, formatting and removed read0Bits function
2020-07-28 04:36:58 -07:00
Collin Smith
25b428cb04
Rolled CTX functions into Log
2020-07-26 02:12:51 -07:00
Collin Smith
8067e6fec3
Added support for full mode output for MDC layout
2020-07-25 18:31:06 -07:00
Collin Smith
d18885b17c
Marked writeEntry with OrderedMap as deprecated
2020-07-25 18:22:50 -07:00
Collin Smith
4eed3a819e
Deprecated OrderedMap impl -- only a decorator for ThreadContext map methods
2020-07-25 18:18:44 -07:00
Collin Smith
c56431b57f
Replaced CTX impl with ThreadContext impl
2020-07-25 18:16:08 -07:00
Collin Smith
29ea674060
OrderedMap impl of ThreadContextMap -- deprecated but may be of use later
2020-07-25 17:35:36 -07:00
Collin Smith
f52d47c235
Added Log4J2 as a dependency (see #88 )
...
Created log package with wrappers on top of Log4J
2020-07-25 14:35:38 -07:00
Collin Smith
1d78fb5844
Fixed formatting
2020-07-24 02:24:23 -07:00
Collin Smith
e90ed609aa
Fixed formatting
2020-07-24 02:23:00 -07:00
Collin Smith
fcd49c337b
Fixed format
2020-07-22 01:31:11 -07:00
Collin Smith
a171783286
Improved support for printList
...
Adding ability to print all values in-line
If padEnd doesn't pad any chars, will append a single space char
2020-07-20 14:26:10 -07:00
Collin Smith
7bb5110f82
Added suggester for connect
command to auto write localhost ip address
2020-07-20 04:50:14 -07:00
Collin Smith
4ca93620b5
Partial decoupling of Item from UI code
...
Moved Actor-related fields to ItemWrapper
ItemWrapper unfortunately remains a field within Item (see #91 )
Renamed INSTORE and created Item#flags2 field to track riiablo item flags
2020-07-19 05:52:05 -07:00
Collin Smith
ebac0a1a6c
Fixed network crash -- todo stub out vendor generation when networked #89
2020-07-19 05:37:37 -07:00
Collin Smith
f0a1cdfdb5
Moved helper functions from ItemUtils to Item
2020-07-19 01:38:08 -07:00
Collin Smith
b6c21abbf7
Fixed deserialization bug and appended additional fields to Item#toString
2020-07-18 02:39:52 -07:00