From 043e032ec5e5f259f537d23733f01cd04be4e9e4 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Mon, 10 Aug 2020 18:32:13 -0700 Subject: [PATCH] Added getter for ByteInput ByteBuf for testing --- core/src/com/riiablo/io/ByteInput.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/com/riiablo/io/ByteInput.java b/core/src/com/riiablo/io/ByteInput.java index e75b0cfd..dd2468a6 100644 --- a/core/src/com/riiablo/io/ByteInput.java +++ b/core/src/com/riiablo/io/ByteInput.java @@ -56,6 +56,10 @@ public class ByteInput { return this.bitInput = bitInput; } + ByteBuf buffer() { + return buffer; + } + public int bytesRead() { return buffer.readerIndex(); }