mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 04:25:44 -05:00
Buffer.SetByte
This commit is contained in:
@@ -92,6 +92,10 @@ func (b *Buffer) Byte(index int) byte {
|
||||
return b.head[b.start+index]
|
||||
}
|
||||
|
||||
func (b *Buffer) SetByte(index int, value byte) {
|
||||
b.head[b.start+index] = value
|
||||
}
|
||||
|
||||
// Bytes returns the content bytes of this Buffer.
|
||||
func (b *Buffer) Bytes() []byte {
|
||||
return b.head[b.start:b.end]
|
||||
|
||||
Reference in New Issue
Block a user