Commit 26fcec1
BytesLocation: make the backing ByteBuffer mutable
We will need this in the BytesHandle, because it might try to write too
much data to the buffer... and then what do you do? Well, you allocate a
new, larger buffer, and copy the contents from the old buffer into that.
Unfortunately, this has the confusing side effect of making the
BytesHandle's backing BytesLocation no longer wrap the originally given
ByteBuffer/byte[], but that's tough -- when you keep writing to a buffer
past its capacity, something has to give.1 parent bb9fbd3 commit 26fcec1
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
0 commit comments