Commit 73807363 authored by Sean DuBois's avatar Sean DuBois

Implement r opcode LONG_BINPUT

parent 2dfb2bb8
...@@ -675,7 +675,14 @@ func (d *Decoder) binPut() error { ...@@ -675,7 +675,14 @@ func (d *Decoder) binPut() error {
} }
func (d *Decoder) longBinPut() error { func (d *Decoder) longBinPut() error {
return errNotImplemented var b [4]byte
_, err := io.ReadFull(d.r, b[:])
if err != nil {
return err
}
v := binary.LittleEndian.Uint32(b[:])
d.memo[strconv.Itoa(int(v))] = d.stack[len(d.stack)-1]
return nil
} }
func (d *Decoder) loadSetItem() error { func (d *Decoder) loadSetItem() error {
......
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