Commit f2730bbd authored by Sean DuBois's avatar Sean DuBois

Document why FRAME opCode handler discards framing information

parent 82c48d69
...@@ -797,6 +797,8 @@ func (d *Decoder) binFloat() error { ...@@ -797,6 +797,8 @@ func (d *Decoder) binFloat() error {
return nil return nil
} }
// loadFrame discards the framing opcode+information, this information is useful to do one large read (instead of many small reads)
// https://www.python.org/dev/peps/pep-3154/#framing
func (d *Decoder) loadFrame() error { func (d *Decoder) loadFrame() error {
var b [8]byte var b [8]byte
_, err := io.ReadFull(d.r, b[:]) _, err := io.ReadFull(d.r, b[:])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment