优化代码

This commit is contained in:
dexter
2022-02-07 22:27:45 +08:00
parent 9476564515
commit ff381e7fbf
10 changed files with 62 additions and 61 deletions

View File

@@ -44,7 +44,7 @@ func (b *Buffer) WriteUint24(v uint32) {
func (b *Buffer) WriteUint16(v uint16) {
binary.BigEndian.PutUint16(b.Malloc(2), v)
}
func (b *Buffer) WriteUint8(v byte) {
func (b *Buffer) WriteByte(v byte) {
b.Malloc(1)[0] = v
}
func (b *Buffer) WriteString(a string) {