Method | Description | |
---|---|---|
Compress ( byte streamIn, byte compressorId ) : byte[] |
Simple RLE compressor for item IDs. Bytes that do not repeat are written directly. Bytes that repeat more than once are written twice, followed by the number of additional times to write the byte (i.e., total run length minus two).
|
|
Decompress ( byte input, int maxLength ) : |
Decompresses the passed byte array using RLE scheme.
|
|
Initialize ( ITestSite testSite ) : void |
Initialize some variables overridden.
|
|
ParseItemId ( |
Parse an ItemId's Id from a base64 string to a ItemIdId object according to the defined format
|
public Compress ( byte streamIn, byte compressorId ) : byte[] | ||
streamIn | byte | input stream to compress |
compressorId | byte | id of the compressor |
return | byte[] |
public Decompress ( byte input, int maxLength ) : |
||
input | byte | Bytes to decompress |
maxLength | int | Max allowed length for the byte array |
return |
public Initialize ( ITestSite testSite ) : void | ||
testSite | ITestSite | The instance of ITestSite Class. |
return | void |
public ParseItemId ( |
||
itemId | An ItemIdType object | |
return |