Skip to content

Commit ac37f6e

Browse files
authored
Merge pull request #26 from 1inch/feat/add-uint40-and-48-read
feat: add nextUint40 and nextUint48
2 parents 21125d6 + da3934a commit ac37f6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bytes-iter/bytes-iter.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ export class BytesIter<T> {
9393
return this.nextBytes(4, side)
9494
}
9595

96+
public nextUint40(side = Side.Front): T {
97+
return this.nextBytes(5, side)
98+
}
99+
100+
public nextUint48(side = Side.Front): T {
101+
return this.nextBytes(6, side)
102+
}
103+
96104
public nextUint64(side = Side.Front): T {
97105
return this.nextBytes(8, side)
98106
}

0 commit comments

Comments
 (0)