a502322188
손상된 .git 히스토리(missing tree)로 재초기화 후 작업트리 전체 커밋. .claude/ 만 제외(로컬 에이전트 설정). 구 저장소 백업(.git_corrupt_backup/) 포함. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
20 lines
502 B
C#
20 lines
502 B
C#
namespace ERVSimulator.Protocol
|
|
{
|
|
public static class ChecksumHelper
|
|
{
|
|
public static byte Xor(byte[] data, int start, int length)
|
|
{
|
|
byte x = 0;
|
|
for (int i = 0; i < length; i++) x ^= data[start + i];
|
|
return x;
|
|
}
|
|
|
|
public static byte Add(byte[] data, int start, int length)
|
|
{
|
|
int s = 0;
|
|
for (int i = 0; i < length; i++) s += data[start + i];
|
|
return (byte)(s & 0xFF);
|
|
}
|
|
}
|
|
}
|