Skip to content

Commit

Permalink
use writeByte
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn Yang <[email protected]>
  • Loading branch information
wywen and chaokunyang authored Oct 16, 2024
1 parent 3f557e7 commit 64ed2cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class UByteSerializer(
true) {

override fun write(buffer: MemoryBuffer, value: UByte) {
buffer.writeVarUint32Small7(value.toInt())
buffer.writeByte(value.toInt())
}

override fun read(buffer: MemoryBuffer): UByte {
Expand Down

0 comments on commit 64ed2cc

Please sign in to comment.