1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00

rename Slice and Slice from to Resize and Advance

This commit is contained in:
Darien Raymond
2018-04-19 23:48:38 +02:00
parent 1425fd2ba9
commit 3997d13b97
8 changed files with 13 additions and 13 deletions

View File

@@ -145,7 +145,7 @@ func (r *AuthenticationReader) readInternal(soft bool) (*buf.Buffer, error) {
b.Release()
return nil, err
}
b.Slice(0, int32(len(rb)))
b.Resize(0, int32(len(rb)))
return b, nil
}