From da3934a29273974ae56659d77b8da9a8f358f79e Mon Sep 17 00:00:00 2001 From: rharutyunyan Date: Thu, 30 Oct 2025 19:28:57 +0400 Subject: [PATCH] feat: add nextUint40 and nextUint48 --- src/bytes-iter/bytes-iter.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bytes-iter/bytes-iter.ts b/src/bytes-iter/bytes-iter.ts index 3c78d72..8e790cb 100644 --- a/src/bytes-iter/bytes-iter.ts +++ b/src/bytes-iter/bytes-iter.ts @@ -93,6 +93,14 @@ export class BytesIter { return this.nextBytes(4, side) } + public nextUint40(side = Side.Front): T { + return this.nextBytes(5, side) + } + + public nextUint48(side = Side.Front): T { + return this.nextBytes(6, side) + } + public nextUint64(side = Side.Front): T { return this.nextBytes(8, side) }