Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: common/chunkstream/chunk.go

Issue 1413923013: Add `chunk` segmented data library. (Closed) Base URL: https://github.com/luci/luci-go@logdog-review-streamserver
Patch Set: Use errors in pacnic. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « common/chunkstream/buffer_test.go ('k') | common/chunkstream/chunkNode.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package chunkstream
6
7 // Chunk wraps a fixed-size byte buffer. It is the primary interface used by
8 // the chunk library.
9 //
10 // A Chunk reference should be released once the user is finished with it. After
11 // being released, it may no longer be accessed.
12 type Chunk interface {
13 // Bytes returns the underlying byte slice contained by this Chunk.
14 Bytes() []byte
15
16 // Release releases the Chunk. After being released, a Chunk's methods m ay no
17 // longer be used.
18 Release()
19 }
OLDNEW
« no previous file with comments | « common/chunkstream/buffer_test.go ('k') | common/chunkstream/chunkNode.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698