diff options
| author | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
| commit | 839a68469b6f8bf40620a7977041e089bbd0eba3 (patch) | |
| tree | f8305b165ee5ff41e9ef2b0f76e26f7ab3ece269 /src/lib/io/bytebuffer.go | |
| parent | 0183baaf449338f54727814d079c0254c18226f9 (diff) | |
| download | go-839a68469b6f8bf40620a7977041e089bbd0eba3.tar.xz | |
delete export
TBR=r
OCL=23121
CL=23127
Diffstat (limited to 'src/lib/io/bytebuffer.go')
| -rw-r--r-- | src/lib/io/bytebuffer.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/io/bytebuffer.go b/src/lib/io/bytebuffer.go index 5faeff9eb7..fa11b37ee0 100644 --- a/src/lib/io/bytebuffer.go +++ b/src/lib/io/bytebuffer.go @@ -24,7 +24,7 @@ func bytecopy(dst []byte, doff int, src []byte, soff int, count int) { } } -export type ByteBuffer struct { +type ByteBuffer struct { buf []byte; off int; // Read from here len int; // Write to here @@ -87,8 +87,7 @@ func (b *ByteBuffer) AllData() []byte { return b.buf[0:b.len] } - -export func NewByteBufferFromArray(buf []byte) *ByteBuffer { +func NewByteBufferFromArray(buf []byte) *ByteBuffer { b := new(ByteBuffer); b.buf = buf; b.off = 0; |
