Skip to content

Commit

Permalink
πŸ€·πŸ»β€β™‚οΈ
Browse files Browse the repository at this point in the history
  • Loading branch information
johntalton committed May 21, 2024
1 parent f5a2154 commit a6bac86
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ export class Converter {
new Uint8Array(into.buffer, into.byteOffset, into.byteLength) :
new Uint8Array(into)

u8[0] = 0
| (value[0] === HIGH ? 1 << 0 : 0)
| (value[1] === HIGH ? 1 << 1 : 0)
| (value[2] === HIGH ? 1 << 2 : 0)
| (value[3] === HIGH ? 1 << 3 : 0)
| (value[4] === HIGH ? 1 << 4 : 0)
| (value[5] === HIGH ? 1 << 5 : 0)
| (value[6] === HIGH ? 1 << 6 : 0)
| (value[7] === HIGH ? 1 << 7 : 0)
u8[0] = 0 |
(value[0] === HIGH ? 1 << 0 : 0) |
(value[1] === HIGH ? 1 << 1 : 0) |
(value[2] === HIGH ? 1 << 2 : 0) |
(value[3] === HIGH ? 1 << 3 : 0) |
(value[4] === HIGH ? 1 << 4 : 0) |
(value[5] === HIGH ? 1 << 5 : 0) |
(value[6] === HIGH ? 1 << 6 : 0) |
(value[7] === HIGH ? 1 << 7 : 0)

return u8.buffer
}
Expand Down

0 comments on commit a6bac86

Please sign in to comment.