good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit e3718d4e authored by a's avatar a
Browse files

a

parent 0bcfc1c4
No related branches found
Tags v0.1.3
No related merge requests found
Pipeline #57183 passed with stages
in 8 minutes and 30 seconds
......@@ -22,8 +22,12 @@ type Encoder struct {
buf [8]byte
}
const defaultBufferSize = 16 * 1024
func NewEncoder(w io.Writer) *Encoder {
e := new(Encoder)
bw := bufio.NewWriterSize(w, defaultBufferSize)
e.writer = *bw
e.Reset(w)
return e
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment