diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-10-08 02:47:42 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-10-08 02:54:55 +0200 |
| commit | d2ae1381c76f53c14fe4e6e4d9b557887cd93187 (patch) | |
| tree | a4f67413af6bea45a982fba98c5b1826c6fb08e7 /writer.go | |
| parent | 4660317cbba12af5ae1546948785301e7f9108b4 (diff) | |
| download | muxer-d2ae1381c76f53c14fe4e6e4d9b557887cd93187.tar.gz muxer-d2ae1381c76f53c14fe4e6e4d9b557887cd93187.zip | |
Update Go module path and source imports
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 |
