Skip to content

Commit

Permalink
Use readByte
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 64ed2cc commit 5c92e80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class UByteSerializer(
}

override fun read(buffer: MemoryBuffer): UByte {
return buffer.readVarUint32().toUByte()
return buffer.readByte().toUByte()
}
}

Expand Down

0 comments on commit 5c92e80

Please sign in to comment.