[DiscordArchive] shouldn't it affect the whole stream of bytes?
[DiscordArchive] shouldn't it affect the whole stream of bytes?
Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:05.343000+00:00
Original source
shouldn't it affect the whole stream of bytes?
Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:12.792000+00:00
Original source
not just the first 4?
Archived author: JORGIE • Posted: 2021-03-15T07:52:47.262000+00:00
Original source
```java
public static void main(String[] args) {
String value = "JSONRealmListServerIPAddresses:{\"test\":\"test\"}";
byte[] valueBytes = value.getBytes(StandardCharsets.UTF_8);
byte[] outBytes = new byte[valueBytes.length + 4];
ByteBuffer.wrap(outBytes).order(ByteOrder.LITTLE_ENDIAN).putInt(valueBytes.length + 1);
int compressed = CompressDeflate.compress(valueBytes, 0, valueBytes.length, outBytes, 4);
for (int i = 0; i < compressed; i++) {
System.out.printf("%02X ",outBytes[i]);
}
}
```
Archived author: JORGIE • Posted: 2021-03-15T07:55:33.090000+00:00
Original source
<@!429055059754483713> just the first 4 bytes.
Archived author: JORGIE • Posted: 2021-03-15T07:56:37.537000+00:00
Original source
I do not know why the last bytes are not different.