IStorage.cs 589 B

123456789101112131415161718192021222324252627
  1. namespace SvdCli.Storage
  2. {
  3. public interface IStorage
  4. {
  5. string ProductId { get; }
  6. string ProductVersion { get; }
  7. uint BlockSize { get; }
  8. ulong BlockCount { get; }
  9. uint MaxTransferLength { get; }
  10. bool SupportTrim { get; }
  11. bool WriteProtect { get; }
  12. void Init();
  13. void Exit();
  14. void Read(byte[] buffer, ulong blockIndex, uint blockCount);
  15. void Write(byte[] buffer, ulong blockIndex, uint blockCount);
  16. void Flush();
  17. void Trim(params TrimDescriptor[] descriptors);
  18. }
  19. }