[Mono-dev] Marshaling Question

Scott Peterson lunchtimemama at gmail.com
Sat Feb 9 04:06:58 EST 2008

I need to marshal the native cdrom_tocentry struct from linux/cdrom.h
Here's my attempt (which is incorrect). Can someone tell me where I'm
going wrong?

struct cdrom_tocentry
    public byte cdte_track;
    public byte cdte_adr;
    public byte cdte_ctrl;
    public byte cdte_format;
    public cdrom_addr cdte_addr;
    public byte cdte_datamode;

struct cdrom_addr
    [FieldOffset(0)] public cdrom_msf0 msf;
    [FieldOffset(0)] public int lba;

struct cdrom_msf0
    public byte minute;
    public byte second;
    public byte frame;


More information about the Mono-devel-list mailing list