hash library

A set of utilities for hashing and encoding/decoding data in the O'Mesh format.

To represent a mesh gradeient as binary data, use the OMeshBinaryFormatCodec class.

To generate a hash from and to a hash String, use the getHashFromMesh and getMeshFromHash functions.

Classes

OMeshBinaryFormatCodec
a Codec for OMeshRect to/from binary format.
OMeshBinaryFormatPayloadType
A PayloadType for OMeshBinaryFormat

Functions

getHashFromMesh(OMeshRect mesh) String
A function that encodes a mesh gradient into a hash string.
getMeshFromHash(String hash) OMeshRect
A function that decodes a hash string generated by getHashFromMesh back into a mesh gradient.

Typedefs

OMeshBinaryFormat = ({OMeshRect mesh, int specVersion})
The whole information contained on a omesh binary file