private static void ControlReadTocHeader(int handle, ref cdrom_tochdr header) { if (NativeIoctl(handle, CDROMREADTOCHDR, ref header) < 0) { throw new System.IO.InvalidDataException("IO/Control TOC header"); } }
int ReadTocHeader(int fd) { cdrom_tochdr th = new cdrom_tochdr(); cdrom_multisession ms = new cdrom_multisession(); int ret = read_toc_header(fd, ref th); if (ret < 0) { return(ret); } first_track = th.cdth_trk0; last_track = th.cdth_trk1; ms.addr_format = CDROM_LBA; ret = read_multisession(fd, ref ms); if (ms.xa_flag != 0) { last_track--; } return(ret); }
static int read_toc_header(int fd, ref cdrom_tochdr header) { return(read_toc_header(fd, CDROMREADTOCHDR, ref header)); }
static extern int read_toc_header(int fd, int request, ref cdrom_tochdr header);
int ReadTocHeader(int fd) { cdrom_tochdr th = new cdrom_tochdr (); cdrom_multisession ms = new cdrom_multisession (); int ret = read_toc_header (fd, ref th); if (ret < 0) return ret; first_track = th.cdth_trk0; last_track = th.cdth_trk1; ms.addr_format = CDROM_LBA; ret = read_multisession (fd, ref ms); if(ms.xa_flag != 0) last_track--; return ret; }
static int read_toc_header(int fd, ref cdrom_tochdr header) { return read_toc_header (fd, CDROMREADTOCHDR, ref header); }
public LinuxDiscTocHeader() { LinuxTocHeader = new cdrom_tochdr(); }
private static extern int NativeIoctl(int fd, int request, ref cdrom_tochdr data);