Guest User

Untitled

a guest
Jan 21st, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. header =
  2. { b01_36 : 36bytes;
  3. (* 0x010000000000000000000000000000000000000000000000000000000004000000050000 *)
  4. num_strokes : 2bytes; (* more likely 16bit short than byte *)
  5. b38_39 : 2bytes (* Always 0x0000? *) }
  6.  
  7. stroke =
  8. { stroke_header : stroke_header;
  9. points : point list }
  10.  
  11. stroke_header =
  12. { b01 : 1byte; (* Always 0x00? *)
  13. b02_03 : 2bytes; (* Always 3? 16bit short or byte?*)
  14. b04_05 : 2bytes; (* Always 0x0000? *)
  15. b06_09 : 4bytes; (* Always 0xB4276842 or 0x5A5A3143? *)
  16. b10_17 : 8bytes; (* Always 0x0000000000000000? *)
  17. width : 2bytes; (* 16bit short or byte? (the latter would suffice) *)
  18. b20_21 : 2bytes; (* Always 0x0000? *)
  19. num_points : 2bytes; (* more likely 16bit short than byte *)
  20. b24 : 1byte (* Always 0x00? *) }
  21.  
  22. point =
  23. { b01 : 1byte; (* Always 0x00? *)
  24. y : 2bytes;
  25. b04_05 : 2bytes; (* Always 0x00? *)
  26. x : 2bytes;
  27. b08_09 : 2bytes; (* Always 0x00? *)
  28. b10_12 : 4bytes (* Always 0x000000 for the first point,
  29. 0x88D32F or 0xE8021B for the middle points and
  30. 0xF0B115 or 0xB8A215 for the final point? *) }
Add Comment
Please, Sign In to add comment