export_test.go 329 B

1234567891011121314
  1. // Copyright 2009 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package bytes
  5. // Export func for testing
  6. var IndexBytePortable = indexBytePortable
  7. var EqualPortable = equalPortable
  8. func (b *Buffer) Cap() int {
  9. return cap(b.buf)
  10. }