resonance 1.0.1
Loading...
Searching...
No Matches
Tools::BuildImage::SectorEncoder Class Reference

Encoder of CD-ROM XA Mode 2 Form 1 sectors with table-driven EDC and ECC. More...

#include <sectorencoder.h>

Static Public Member Functions

static void encode (std::uint32_t lba, std::span< const std::uint8_t, kDataSize > data, std::span< std::uint8_t, kRawSize > sector)
 Encode one data sector with the data subheader.

Static Public Attributes

static constexpr std::size_t kDataSize = 2048
 Data bytes in one sector.
static constexpr std::size_t kRawSize = 2352
 Bytes in one raw sector.
static constexpr std::size_t kDataOffset = 24
 Offset of the data bytes within a raw Mode 2 Form 1 sector.

Detailed Description

Encoder of CD-ROM XA Mode 2 Form 1 sectors with table-driven EDC and ECC.

Member Function Documentation

◆ encode()

void Tools::BuildImage::SectorEncoder::encode ( std::uint32_t lba,
std::span< const std::uint8_t, kDataSize > data,
std::span< std::uint8_t, kRawSize > sector )
static

Encode one data sector with the data subheader.

Parameters
lbaSector number relative to the track start.
dataThe 2048 data bytes.
sectorDestination of the raw sector with its EDC and both ECC parity blocks.

Member Data Documentation

◆ kDataSize

std::size_t Tools::BuildImage::SectorEncoder::kDataSize = 2048
staticconstexpr

Data bytes in one sector.

◆ kRawSize

std::size_t Tools::BuildImage::SectorEncoder::kRawSize = 2352
staticconstexpr

Bytes in one raw sector.

◆ kDataOffset

std::size_t Tools::BuildImage::SectorEncoder::kDataOffset = 24
staticconstexpr

Offset of the data bytes within a raw Mode 2 Form 1 sector.


The documentation for this class was generated from the following file: