Hi Elad,
We have an example written in C# in Unity:
https://developer.leapmotion.com/downloads/unity
The example scene is under: Assets/LeapMotion/Scenes/RecordAndPlayback.unity
The script for serialization is under: Assets/LeapMotion/Scripts/Utils/LeapRecorder.cs
The usage of the script is called under: Assets/LeapMotion/Scripts/HandController.cs (Line 218 to 263)
Keep in mind: Frames are serialized into a byte arrays (In some order of KB).
In this sample, we first save the byte array size as a 4 Bytes Int, then we save the byte array. We repeat this process for the duration of the recording, and save all the data into 1 .byte file.
For example, if you save two frames, the file format could look like:
[ frame data size 1 (4 B) ] [ frame data 1 (5 KB) ] [ frame data size 2 (4 B) ] [ frame data 2 (5 KB) ]
We're still working on providing working examples for languages.
Cheers,
Wilbur