Click or drag to resize

Crc Class

Code for crc calculation, initially taken from here: http://www.w3.org/TR/PNG-CRCAppendix.html TODO: could we use .NET's crc implementation instead of this?
Inheritance Hierarchy
SystemObject
  Ptv.XServer.Controls.Map.Tools.ReprojectionCrc

Namespace:  Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class Crc

The Crc type exposes the following members.

Constructors
  NameDescription
Public methodCrc
Initializes a new instance of the Crc class
Top
Methods
  NameDescription
Public methodStatic membercrc
Return the CRC of the bytes buf[0..len-1].
Public methodStatic memberupdate_crc
Update a running CRC with the bytes buf[0..len-1]. The CRC should be initialized to all 1's, and the transmitted value is the 1's complement of the final running CRC (see method crc(Byte, Int64, Int64))).
Top
Extension Methods
  NameDescription
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also