Re: convert byte[] to an type

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"sklett" <s@xxxxx> wrote in message
news:e3K1%23cygHHA.4064@xxxxxxxxxxxxxxxxxxxxxxx
Hi Marc,

Thanks for the info. The object I'm trying to create is an object from an
label program API. I've serialized a file from disk to a byte array. The
api want me to create one of these label objects by passing it a path to a
file... this is slowing things down quite a bit.

Then you have to have a path to a file. However, in *nix, and to a slightly
lesser extent in Windows, everything is a file, not just disk files. You
may be able to create a named pipe and hand the path to said pipe to the
API, thereby avoiding slow disk access.


.



Relevant Pages

  • RE: [RFC] transcendent memory for Linux
    ... Should this API be documented, ... able to use preswap, else it will not). ... write and a disk read are avoided. ... the page is written to swap as usual. ...
    (Linux-Kernel)
  • Re: CreateFile fails when trying to Write on DVD/CDROm
    ... ordinary disk drive. ... You can also get third-party driver software (like Adaptec/Roxio's DirectCD ... not use the standard CD or DVD formatting, and the disk will only be ... MS have an API called the Image Mastering API ...
    (microsoft.public.vc.mfc)
  • Re: [RFC] transcendent memory for Linux
    ... Should this API be documented, ... visible to the kernel (but, briefly, if the kernel is being ... able to use preswap, else it will not). ... write and a disk read are avoided. ...
    (Linux-Kernel)
  • Re: Accessing disks via their serial numbers.
    ... disk, and have the disk api automaticly propegate the serial number up ... narrow API. ... I'd like to see an attribute API pushed into diskso that GEOM modules can query additional disk properties in much the same way they can query GEOM attributes. ... However, I think that we should not move existing mandatory fields out if they really are mandatory -- right now the API guarantees that certain values will always be available, and will not change. ...
    (freebsd-arch)