diff options
Diffstat (limited to 'writer.go')
| -rw-r--r-- | writer.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,12 +1,14 @@ -package binproto +package muxer import ( "bufio" "encoding/binary" ) -// A Writer implements convenience methods for writing -// requests or responses to a binary protocol network connection. +// Writer implements a buffered message writer for the muxer protocol. +// It encodes and writes messages to an underlying bufio.Writer, handling +// message framing and varint-based length encoding. Writer is not safe for +// concurrent use by multiple goroutines. type Writer struct { wd *bufio.Writer scratch [20]byte |
