Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] shouldn't it affect the whole stream of bytes?

[DiscordArchive] shouldn't it affect the whole stream of bytes?

[DiscordArchive] shouldn't it affect the whole stream of bytes?

rektbyfaith
Administrator
0
03-15-2021, 07:52 AM
#1
Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:05.343000+00:00
Original source

shouldn't it affect the whole stream of bytes?
rektbyfaith
03-15-2021, 07:52 AM #1

Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:05.343000+00:00
Original source

shouldn't it affect the whole stream of bytes?

rektbyfaith
Administrator
0
03-15-2021, 07:52 AM
#2
Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:12.792000+00:00
Original source

not just the first 4?
rektbyfaith
03-15-2021, 07:52 AM #2

Archived author: ZaDarkSide • Posted: 2021-03-15T07:52:12.792000+00:00
Original source

not just the first 4?

rektbyfaith
Administrator
0
03-15-2021, 07:52 AM
#3
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]);
}
}

```
rektbyfaith
03-15-2021, 07:52 AM #3

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]);
}
}

```

rektbyfaith
Administrator
0
03-15-2021, 07:55 AM
#4
Archived author: JORGIE • Posted: 2021-03-15T07:55:33.090000+00:00
Original source

<@!429055059754483713> just the first 4 bytes.
rektbyfaith
03-15-2021, 07:55 AM #4

Archived author: JORGIE • Posted: 2021-03-15T07:55:33.090000+00:00
Original source

<@!429055059754483713> just the first 4 bytes.

rektbyfaith
Administrator
0
03-15-2021, 07:56 AM
#5
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.
rektbyfaith
03-15-2021, 07:56 AM #5

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)