Example #1
0
func ReadSizedTuple(r *marshal.Reader, i interface{}) error {
	sz := r.IntUint32()
	if r.Err == nil {
		rd := marshal.Reader{Body: r.Slice(sz + 4)}
		r.Err = ReadRawTuple(&rd, i)
	}
	return r.Err
}