public void Write(KinectRawCompositeFrame data, long ticks) { writer.Write(ticks); byte[] depth = data.depth.ToByteArray(); writer.Write(depth.Length); writer.Write(depth); writer.Write(data.image.Length); writer.Write(data.image); }