Skip to content

Commit

Permalink
Merge pull request #195 from howmanysmall/main
Browse files Browse the repository at this point in the history
Update BufferWriter.lua
  • Loading branch information
Sleitnick authored May 27, 2024
2 parents a992413 + 2296fa4 commit f3af8d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/buffer-util/BufferWriter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end
]=]
function BufferWriter:WriteUInt8(uint8: number)
self:_resizeUpTo(self._cursor + 1)
buffer.writei8(self._buffer, self._cursor, uint8)
buffer.writeu8(self._buffer, self._cursor, uint8)
self._cursor += 1
end

Expand All @@ -87,7 +87,7 @@ end
]=]
function BufferWriter:WriteUInt16(uint16: number)
self:_resizeUpTo(self._cursor + 2)
buffer.writei16(self._buffer, self._cursor, uint16)
buffer.writeu16(self._buffer, self._cursor, uint16)
self._cursor += 2
end

Expand All @@ -105,7 +105,7 @@ end
]=]
function BufferWriter:WriteUInt32(uint32: number)
self:_resizeUpTo(self._cursor + 4)
buffer.writei32(self._buffer, self._cursor, uint32)
buffer.writeu32(self._buffer, self._cursor, uint32)
self._cursor += 4
end

Expand Down

0 comments on commit f3af8d5

Please sign in to comment.