# SoftBank Robotics documentation What's new in NAOqi 2.8?

# Binary Codec

## Summary

Global Namespaces

- namespace qi

  Functions (namespace qi)

  qi::encodeBinary

## Reference

void `qi::``encodeBinary`(qi::Buffer* buf, const AutoAnyReference& gvp, SerializeObjectCallback onObject = SerializeObjectCallback()

  Brief:

  Parameters: | buf – buffer that will be filled with serialized data gvp – AnyReference to serialize onObject – callback invoked each time an object is encountered.

  Encode content of gvp into buf.

`qi::decodeBinary(qi::BufferReader *buf, AnyReference gvp, DeserializeObjectCallback onObject=DeserializeObjectCallback(), StreamContext* ctx = 0)`

Glossary Site map Index Support Contact Legal Notices