clean up DhDataInputStream

This commit is contained in:
James Seibel
2025-11-24 13:51:48 -06:00
parent ed7511ff6a
commit 3349e5b898
5 changed files with 39 additions and 68 deletions
+1 -3
View File
@@ -77,9 +77,7 @@ public class VarintTest
// read stream
byte[] byteArray = byteArrayOutputStream.toByteArray();
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray);
try (DhDataInputStream inputStream = new DhDataInputStream(byteArrayInputStream, EDhApiDataCompressionMode.UNCOMPRESSED))
try (DhDataInputStream inputStream = DhDataInputStream.create(byteArrayOutputStream.toByteArray(), EDhApiDataCompressionMode.UNCOMPRESSED))
{
int encodedValue = VarintUtil.readVarint(inputStream);
int decodedValue = VarintUtil.zigzagDecode(encodedValue);