1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00

remove use of 'v' as a variable name

This commit is contained in:
Darien Raymond
2016-11-27 17:01:44 +01:00
parent 77e1427845
commit d00f8eef56
12 changed files with 45 additions and 45 deletions

View File

@@ -77,13 +77,13 @@ func (b *Buffer) AppendString(s string) *Buffer {
return b
}
func (b *Buffer) AppendUint16(v uint16) *Buffer {
b.Value = serial.Uint16ToBytes(v, b.Value)
func (b *Buffer) AppendUint16(val uint16) *Buffer {
b.Value = serial.Uint16ToBytes(val, b.Value)
return b
}
func (b *Buffer) AppendUint32(v uint32) *Buffer {
b.Value = serial.Uint32ToBytes(v, b.Value)
func (b *Buffer) AppendUint32(val uint32) *Buffer {
b.Value = serial.Uint32ToBytes(val, b.Value)
return b
}
@@ -99,15 +99,15 @@ func (b *Buffer) PrependBytes(data ...byte) *Buffer {
return b.Prepend(data)
}
func (b *Buffer) PrependUint16(v uint16) *Buffer {
func (b *Buffer) PrependUint16(val uint16) *Buffer {
b.SliceBack(2)
serial.Uint16ToBytes(v, b.Value[:0])
serial.Uint16ToBytes(val, b.Value[:0])
return b
}
func (b *Buffer) PrependUint32(v uint32) *Buffer {
func (b *Buffer) PrependUint32(val uint32) *Buffer {
b.SliceBack(4)
serial.Uint32ToBytes(v, b.Value[:0])
serial.Uint32ToBytes(val, b.Value[:0])
return b
}