This commit is contained in:
adman
2026-01-12 17:33:26 +01:00
parent 08ddf8dc41
commit 11bf0624a4
16 changed files with 132 additions and 58 deletions
+5 -2
View File
@@ -28,7 +28,7 @@ func (d Direction) Opposite() Direction {
return d ^ 1
}
type State int
type State int32
const (
Handshaking State = iota
@@ -82,7 +82,10 @@ var ToDoError = errors.New("to do")
var BadTypeError = errors.New("bad type")
func (b *RestBuffer) Encode(w io.Writer) (err error) {
_, err = w.Write(*b)
n, err := w.Write(*b)
if n != len(*b) {
panic("fucking write not writing all")
}
return
}