File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,12 @@ const (
261
261
minReuseBytes = 64 // only reuse bytes if n >= minReuseBytes
262
262
263
263
defaultLinkBufferMode = 0
264
- // readonly mode indicate that the buffer node memory is not controlled by itself,
265
- // so we cannot reuse the buffer or nocopy read it, default value is false.
264
+ // readonlyMask is used to set readonly mode,
265
+ // which indicate that the buffer node memory is not controlled by itself,
266
+ // so we cannot reuse the buffer or nocopy read it.
266
267
readonlyMask uint8 = 1 << 0 // 0000 0001
267
- // nocopyRead mode indicate that the buffer node has been no copy read and cannot reuse the buffer, default value is false.
268
+ // readonlyMask is used to set nocopyRead mode,
269
+ // which indicate that the buffer node has been no copy read and cannot reuse the buffer.
268
270
nocopyReadMask uint8 = 1 << 1 // 0000 0010
269
271
)
270
272
You can’t perform that action at this time.
0 commit comments