Encoder of CD-ROM XA Mode 2 Form 1 sectors with table-driven EDC and ECC.
More...
#include <sectorencoder.h>
|
| 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 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.
|
Encoder of CD-ROM XA Mode 2 Form 1 sectors with table-driven EDC and ECC.
◆ 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
-
| lba | Sector number relative to the track start. |
| data | The 2048 data bytes. |
| sector | Destination of the raw sector with its EDC and both ECC parity blocks. |
◆ 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 |
◆ 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: