From 275316a531cb8e853d7d8f0ac50f7cd153df33ea Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 7 Jul 2022 15:54:21 +0200 Subject: [PATCH] Added boolean byte size. --- pom.xml | 2 +- src/main/java/nl/andrewl/record_net/MessageUtils.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fc6da13..13049e4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ nl.andrewl record-net - 1.3.3 + 1.3.4 17 diff --git a/src/main/java/nl/andrewl/record_net/MessageUtils.java b/src/main/java/nl/andrewl/record_net/MessageUtils.java index 5a277f2..d3eb1e0 100644 --- a/src/main/java/nl/andrewl/record_net/MessageUtils.java +++ b/src/main/java/nl/andrewl/record_net/MessageUtils.java @@ -66,6 +66,8 @@ public class MessageUtils { return Short.BYTES; } else if (o instanceof Long) { return Long.BYTES; + } else if (o instanceof Boolean) { + return 1; } else if (o instanceof String) { return getByteSize((String) o); } else if (o instanceof UUID) {