Added boolean byte size.

This commit is contained in:
Andrew Lalis 2022-07-07 15:54:21 +02:00
parent a9fbcb8c2e
commit 275316a531
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>nl.andrewl</groupId> <groupId>nl.andrewl</groupId>
<artifactId>record-net</artifactId> <artifactId>record-net</artifactId>
<version>1.3.3</version> <version>1.3.4</version>
<properties> <properties>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>

View File

@ -66,6 +66,8 @@ public class MessageUtils {
return Short.BYTES; return Short.BYTES;
} else if (o instanceof Long) { } else if (o instanceof Long) {
return Long.BYTES; return Long.BYTES;
} else if (o instanceof Boolean) {
return 1;
} else if (o instanceof String) { } else if (o instanceof String) {
return getByteSize((String) o); return getByteSize((String) o);
} else if (o instanceof UUID) { } else if (o instanceof UUID) {