A SBE flyweight behaves a bit like a stencil, you position it over a wall (byte array) at the right place (offset) and then you can paint (encode) very quickly!

If you have not heard about Simple Binary Encoding (SBE) before you should read this overview first.

The design of SBE applies some interesting techniques, combines them in a simple solution and is super hardware friendly.