mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-18 02:19:07 -04:00
improve fetch performance
This commit is contained in:
@@ -40,6 +40,12 @@ func (b *Buffer) Clear() *Buffer {
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *Buffer) Reset() *Buffer {
|
||||
b.offset = defaultOffset
|
||||
b.Value = b.head
|
||||
return b
|
||||
}
|
||||
|
||||
// AppendBytes appends one or more bytes to the end of the buffer.
|
||||
func (b *Buffer) AppendBytes(bytes ...byte) *Buffer {
|
||||
b.Value = append(b.Value, bytes...)
|
||||
|
||||
Reference in New Issue
Block a user