lab4: компенсация без потери объекта при потере ответа COMMIT, полный декод изображений (sharp) в proxy и direct complete

This commit is contained in:
2026-10-23 16:37:13 +03:00
parent b32ce9a75d
commit 4badd5a7b9
33 changed files with 1932 additions and 861 deletions
+11
View File
@@ -93,3 +93,14 @@ export function noisePng(size: number): Buffer {
return padPngTo(png, size);
}
}
/** Valid signature, IHDR, CRCs and IEND around a zlib stream of random bytes. */
export function pngWithGarbageIdat(): Buffer {
return buildPng({
width: 320,
height: 200,
colorType: 2,
bitDepth: 8,
idat: randomBytes(5000),
});
}