Using C's fread/fwrite with File objects
pineapple via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 22 11:20:05 PDT 2015
I'd like to use fread and fwrite in place of File.rawRead and
File.rawWrite which force the creation of an array where I'd
rather specify a buffer location and length. I'd like to do this
using a File object but the handle for the C stream is a private
member and I can't find any way to access it. Is there a getter
or something I missed, or else some way to pry private data like
this out of a class?
More information about the Digitalmars-d-learn
mailing list