|
ChannelFrameBaseTAppendChecksum Method
|
Appends checksum onto buffer starting at startIndex.
Namespace: GSF.PhasorProtocolsAssembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.218-beta
Syntax protected virtual void AppendChecksum(
byte[] buffer,
int startIndex
)
Protected Overridable Sub AppendChecksum (
buffer As Byte(),
startIndex As Integer
)
protected:
virtual void AppendChecksum(
array<unsigned char>^ buffer,
int startIndex
)
abstract AppendChecksum :
buffer : byte[] *
startIndex : int -> unit
override AppendChecksum :
buffer : byte[] *
startIndex : int -> unit
function AppendChecksum(buffer, startIndex);
View SourceParameters
- buffer Byte
- Buffer image on which to append checksum.
- startIndex Int32
- Index into buffer where checksum should be appended.
Remarks
Default implementation encodes checksum in big-endian order and expects buffer size large enough to accommodate
2-byte checksum representation. Override method if protocol expectations are different.
See Also