Displaying 1 result from an estimated 1 matches for "tbytearray".
Did you mean:
bytearray
2002 Jul 12
0
Problem with checksums
...0xbcb4666d,0xb8757bda,0xb5365d03,0xb1f740b4};
extern void ChecksumCalc(unsigned int *crc_reg, char *buffer, unsigned int
size){
unsigned int i;
for(i=0;i<size;i++)
*crc_reg=(*crc_reg<<8)^crc_lookup[((*crc_reg >>24)&0xff)^buffer[i]];
}
<p>Delphi test code:
type
TByteArray = packed array of Byte;
TCharArray = packed array of Char;
TOggPageHeader = packed record
CapturePattern: packed array [1..4] of Char;
StreamStructureVersion,
HeaderTypeFlag: Byte;
AbsolutePosition: Int64;
StreamSerialNumber,
PageSequenceNumber,
Checksum: Cardinal;...