ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Formats a byte range from a Uint8Array in a hexdump-style format.
*
* Each line contains:
* - An 8-character hex offset
* - Up to 16 bytes shown as two-digit hex values (grouped in pairs of 8)
* - An ASCII representation where non-printable bytes are shown as '.'
*
* Example output:
* ```
* 00000000 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 |MZ..............|
* 00000010 b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 |........@.......|
* ```
*/
export function formatHexdump(data: Uint8Array, startOffset: number = 0, maxBytes?: number): string {
const bytesToFormat = maxBytes !== undefined ? Math.min(data.length - startOffset, maxBytes) : data.length - startOffset;
if (bytesToFormat <= 0)
lines
bytesPerLine
i i bytesToFormat i bytesPerLine
offset startOffset i
lineBytes MathbytesPerLine bytesToFormat i
slice datastartOffset i startOffset i lineBytes
offsetStr offset
hexParts
j j bytesPerLine j
j
hexParts
j lineBytes
hexPartsslicej
hexParts
hexStr hexParts
ascii
j j lineBytes j
byte slicej
ascii byte byte Stringbyte
lines
lines
data Uint8Array
checkLength Mathdatalength
i i checkLength i
datai