Commit ea2098b7 authored by Damian Gryski's avatar Damian Gryski

decoder: add BINGET / LONG_BINGET

parent d1fee502
......@@ -511,7 +511,9 @@ func (d *Decoder) get() error {
}
func (d *Decoder) binGet() error {
return errNotImplemented
b, _ := d.r.ReadByte()
d.push(d.memo[strconv.Itoa(int(b))])
return nil
}
func (d *Decoder) inst() error {
......@@ -519,7 +521,10 @@ func (d *Decoder) inst() error {
}
func (d *Decoder) longBinGet() error {
return errNotImplemented
var v int32
binary.Read(d.r, binary.LittleEndian, &v)
d.push(d.memo[strconv.Itoa(int(v))])
return nil
}
func (d *Decoder) loadList() 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