| 462 | } |
| 463 | |
| 464 | std::string CChunkRenderText::GetByteString(array_view<unsigned char> Data, int LineBreak) { // // // |
| 465 | std::string str = "\t.byte "; |
| 466 | |
| 467 | int i = 0; |
| 468 | while (!Data.empty()) { |
| 469 | str += '$'; |
| 470 | str += conv::sv_from_uint_hex(Data.front(), 2); |
| 471 | Data.pop_front(); |
| 472 | |
| 473 | if (!Data.empty()) { |
| 474 | if ((i % LineBreak == (LineBreak - 1))) |
| 475 | str += "\n\t.byte "; |
| 476 | else |
| 477 | str += ", "; |
| 478 | } |
| 479 | |
| 480 | ++i; |
| 481 | } |
| 482 | |
| 483 | str += '\n'; |
| 484 | return str; |
| 485 | } |
| 486 | |
| 487 | std::string CChunkRenderText::GetByteString(const CChunk *pChunk, int LineBreak) { // // // |
| 488 | int len = pChunk->GetLength(); |