BddFormat.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Sln - 1 Initial version
  2. =======
  3. 2: Length of based image file path
  4. N: Based image file path UTF-8
  5. 4: Size of Block Byte
  6. 4: Number of Blocks | BlockSize * NumberOfBlocks Must equal to Based image
  7. N: Block index table
  8. N: Dynamic allocated data blocks
  9. Sln - 2 Reserved base image file path for flexible change [Not adopted]
  10. =======
  11. 65535-8: Fixed Based image file path UTF-8
  12. 4: Size of Block Byte
  13. 4: Number of Blocks | BlockSize * NumberOfBlocks Must equal to Based image
  14. N: Block index table
  15. N: Dynamic allocated data blocks
  16. Sln - 3 No based image just dynamic allocate
  17. =======
  18. 2: Zero value to indicate
  19. 4: Size of Block Byte
  20. 4: Number of Blocks
  21. N: Block index table
  22. N: Dynamic allocated data blocks
  23. Block index entry Rev.1 16 Bytes [Not adopted]
  24. =================
  25. 4: Flags
  26. Bit0: when allocated then set bit0 from 0 to 1
  27. Bit1-31: Resvered
  28. 8: Offset 64bit unsigned integer
  29. 4: Resvered, Checksum?
  30. Block index entry Rev.2 8 Bytes
  31. =======================
  32. 8: Compound bits
  33. Bit0~62: Offset of data block
  34. Bit63: Allocated flag
  35. Block index entry Rev.3 8 Bytes
  36. =======================
  37. 8: Compound bits
  38. Bit00~07: O O O O O O O O
  39. Bit08~15: O O O O O O O O
  40. Bit16~23: O O O O O O O O
  41. Bit24~39: O O O O O O O O
  42. Bit40~47: O O O O O O O O
  43. Bit48~56: S S S S S S S S
  44. Bit57~63: R R R R R R C A
  45. O: Offset of data block in file
  46. R: Reserved bits, not used yet
  47. S: If block data all same, the value
  48. C: Compacted, use with S
  49. A: Allocated flag