Hello,
I have written a gnu pascal binding for libusb.
I would like to improve it by using schemata for the various variable length libusb function arguments.
I can come close by generating the USB arg pointer dynamically as follows:
UsbArgPtr := UsbPtr( addr( ArraySchemata[ 1 ] ) ) to generate a pointer to the array within the schemata. This process can be hidden within the thick binding but not the thin binding.
I would like to be able to declare a type that points to this address for use as an argument type in the binding functions.
Is this possible? Do schemata have other attributes as well as .Size that could be used?
Thanks,
Paul Isaacs