Skip to content

0.2.0

Choose a tag to compare

@jeanpierrefortune jeanpierrefortune released this 27 Jun 13:47

Added

  • System block management: New methods to handle system blocks for compatible storage card types:
    • StorageCardTransactionManager.prepareReadSystemBlock() method.
    • StorageCardTransactionManager.prepareWriteSystemBlock(byte[] data) method.
    • StorageCard.getSystemBlock() method.
    • ProductType.hasSystemBlock() method to indicate system block support by card type.

Changed

  • Parameter naming consistency across all APIs: renamed from blockNumber to blockAddress:
    • StorageCardTransactionManager.prepareReadBlock(int blockAddress) method.
    • StorageCardTransactionManager.prepareReadBlocks(int fromBlockAddress, int toBlockAddress) method.
    • StorageCardTransactionManager.prepareWriteBlocks(int fromBlockAddress, byte[] data) method.
    • StorageCardSelectionExtension.prepareReadBlock(int blockAddress) method.
    • StorageCardSelectionExtension.prepareReadBlocks(int fromBlockAddress, int toBlockAddress) method.
    • StorageCard.getBlock(int blockAddress) method.
    • StorageCard.getBlocks(int fromBlockAddress, int toBlockAddress) method.
  • Documentation improvements:
    • Clarified that block addresses start at 0 and maximum value is getBlockCount() - 1.
    • Enhanced documentation for zero-filled behavior when blocks haven't been read.
    • Fixed incorrect reference from ProductType.getBlockCount() to ProductType.getBlockSize() in write methods.
  • Write operation behavior: Write commands no longer automatically update the StorageCard memory image due to storage card technology limitations. Applications must perform explicit read operations after writes to verify actual card content.