1
0
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:
Darien Raymond
2016-12-06 11:31:19 +01:00
parent 88c9947285
commit 341fa376a1
2 changed files with 9 additions and 5 deletions

View File

@@ -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]