func (rs RSDic) MarshalBinary() (out []byte, err error) {
	var bh codec.MsgpackHandle
	enc := codec.NewEncoderBytes(&out, &bh)
	err = enc.Encode(rs.bits)
	if err != nil {
		return
	}
	err = enc.Encode(rs.pointerBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.rankBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.selectOneInds)
	if err != nil {
		return
	}
	err = enc.Encode(rs.selectZeroInds)
	if err != nil {
		return
	}
	err = enc.Encode(rs.rankSmallBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.num)
	if err != nil {
		return
	}
	err = enc.Encode(rs.oneNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.zeroNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastBlock)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastOneNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastZeroNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.codeLen)
	if err != nil {
		return
	}
	return
}
// MarshalBinary encodes the RSDic into a binary form and returns the result.
MarshalBinary encodes the RSDic into a binary form and returns the result.
// MarshalBinary encodes the RSDic into a binary form and returns the result .
func (rs RSDic) MarshalBinary() (out []byte, err error) {
	var bh codec.MsgpackHandle
	enc := codec.NewEncoderBytes(&out, &bh)
	err = enc.Encode(rs.bits)
	if err != nil {
		return
	}
	err = enc.Encode(rs.pointerBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.rankBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.selectOneInds)
	if err != nil {
		return
	}
	err = enc.Encode(rs.selectZeroInds)
	if err != nil {
		return
	}
	err = enc.Encode(rs.rankSmallBlocks)
	if err != nil {
		return
	}
	err = enc.Encode(rs.num)
	if err != nil {
		return
	}
	err = enc.Encode(rs.oneNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.zeroNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastBlock)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastOneNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.lastZeroNum)
	if err != nil {
		return
	}
	err = enc.Encode(rs.codeLen)
	if err != nil {
		return
	}
	return
}
func ( rs RSDic ) MarshalBinary ( ) ( out [ ] byte , err error ) { var bh codec . MsgpackHandle enc := codec . NewEncoderBytes ( & out , & bh ) err = enc . Encode ( rs . bits ) if err != nil { return } err = enc . Encode ( rs . pointerBlocks ) if err != nil { return } err = enc . Encode ( rs . rankBlocks ) if err != nil { return } err = enc . Encode ( rs . selectOneInds ) if err != nil { return } err = enc . Encode ( rs . selectZeroInds ) if err != nil { return } err = enc . Encode ( rs . rankSmallBlocks ) if err != nil { return } err = enc . Encode ( rs . num ) if err != nil { return } err = enc . Encode ( rs . oneNum ) if err != nil { return } err = enc . Encode ( rs . zeroNum ) if err != nil { return } err = enc . Encode ( rs . lastBlock ) if err != nil { return } err = enc . Encode ( rs . lastOneNum ) if err != nil { return } err = enc . Encode ( rs . lastZeroNum ) if err != nil { return } err = enc . Encode ( rs . codeLen ) if err != nil { return } return }
MarshalBinary encodes the RSDic into a binary form and returns the result.
MarshalBinary encodes the RSDic into a binary form and returns the result .