renaming: AcquireByteBuffer -> Acquire, ReleaseByteBuffer -> Release

This commit is contained in:
Aliaksandr Valialkin
2016-06-23 11:07:55 +03:00
parent e8ad8e40ca
commit 164e50ac3f
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -42,12 +42,12 @@ func testPoolVariousSizes(t *testing.T) {
}
func testAcquireRelease(t *testing.T, n int) {
bb := AcquireByteBuffer()
bb := Acquire()
if len(bb.B) > 0 {
t.Fatalf("non-empty byte buffer returned from acquire")
}
bb.B = allocNBytes(bb.B, n)
ReleaseByteBuffer(bb)
Release(bb)
}
func allocNBytes(dst []byte, n int) []byte {