HeaderFrameAppendChecksum Method
Appends checksum onto buffer starting at startIndex.
Namespace: Gemstone.PhasorProtocols.MacrodyneAssembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.128 -- Release Build+dd7f32701ba80de4d5b0557e84e0ddc18a34573f
protected override void AppendChecksum(
byte[] buffer,
int startIndex
)
Protected Overrides Sub AppendChecksum (
buffer As Byte(),
startIndex As Integer
)
protected:
virtual void AppendChecksum(
array<unsigned char>^ buffer,
int startIndex
) override
function AppendChecksum(buffer, startIndex);
Parameters
- buffer Byte
- Buffer image on which to append checksum.
- startIndex Int32
- Index into buffer where checksum should be appended.
Default implementation encodes checksum in big-endian order and expects buffer size large enough to accommodate
2-byte checksum representation. We override this method since checksum in Macrodyne is a single byte.