Open fengjiannan2010 opened 6 months ago
BlockDevice is a low level interface, so it delegates the file system to the user. There is a simplified example in the legacy samples which is still relevant.
See this code: https://github.com/primoburner/primoburner-samples-legacy/blob/main/windows/net/samples/BlockDevice/MainClass.cs#L337
Basically you keep the disc address and the size for for each file and use that to create the file system tree to pass to BlockDevice.
If you need a more automated way of doing things you could use the DataDisc interface. That takes care of a lot of details for you. And the opposite is true: if you need more control then use BlockDevice.
Hello, I am using this sample code for testing. I now need to use BlockDevice to implement multi-session burning. When using BlockDevice to burn files, you need to import the file layout of the last burn.
Hello, I am using BlockDevice to burn files. After the burning is completed, I call FinalizeDisc(fileSystemLayout, "HPCDEDISC", true, true, false, true) to complete the burning. I need to append the burning file and import the last burned fileSystemLayout before burning. How should I obtain the DataFile fileSystemLayout?