WIP on lowering the number of forks required.
This commit is contained in:
parent
548289560b
commit
99b0abc490
|
@ -96,7 +96,7 @@ func makeBufioReader(input interface{}) *bufio.Reader {
|
||||||
// This parserkit.reader.Reader is used internally by tokenize.API.
|
// This parserkit.reader.Reader is used internally by tokenize.API.
|
||||||
type Buffer struct {
|
type Buffer struct {
|
||||||
bufio *bufio.Reader // used for ReadRune()
|
bufio *bufio.Reader // used for ReadRune()
|
||||||
buffer []byte // input buffer, holding runes that were read from input
|
buffer []byte // input buffer, holding bytes that were read from input
|
||||||
cap int // the full buffer capacity
|
cap int // the full buffer capacity
|
||||||
start int // the offset from where on to read buffered data in the buffer
|
start int // the offset from where on to read buffered data in the buffer
|
||||||
len int // the length of the buffered data
|
len int // the length of the buffered data
|
||||||
|
|
Loading…
Reference in New Issue