From fb130585cc9754cfef97869ee84d0cb5f629586a Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 6 Jan 2025 21:55:30 -0600 Subject: [PATCH] update comment --- src/decoders/chunk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoders/chunk.ts b/src/decoders/chunk.ts index 52c1693..8589710 100644 --- a/src/decoders/chunk.ts +++ b/src/decoders/chunk.ts @@ -6,7 +6,7 @@ export default (buffer: Uint8Array): Chunk => { const id = view.getUint16(offset, true); offset += 2; - // NOTE(jwetzell): this data is split up as 1 bit for has_subchunks and 15 bits for the data_len + // NOTE(jwetzell): this data is split up as 1 bit for hasSubchunks and 15 bits for the dataLen const combinedLengthAndFlag = view.getUint16(offset, true); const hasSubchunks = combinedLengthAndFlag > 32768; const dataLen = hasSubchunks ? combinedLengthAndFlag - 32768 : combinedLengthAndFlag;