Yeah I did dig through the Apple docs, but I'm definitely struggling with that as well.
Or maybe I should say that doing a 1:1 in Lazarus has proven to be challenging for me
I'm trying to list all drives and read/write straight to drives (kind-a like "dd") without using command line options. I've gone the command line route before and noticed that the output of certain statements change per different macOS release (for example the output of diskutil) - so not the most reliable way. So I consider going the "official" route but at times it's a little over my head.