Class IncUintOptRleEncoder

java.lang.Object
io.keikai.doc.collab.lib0.IncUintOptRleEncoder

public class IncUintOptRleEncoder extends Object
Increasing Uint Optimized RLE Encoder

The RLE encoder counts the number of same occurrences of the same value. The IncUintOptRle encoder counts if the value increases. I.e. 7, 8, 9, 10 will be encoded as [-7, 4]. 1, 3, 5 will be encoded as [1, 3, 5].

  • Constructor Details

    • IncUintOptRleEncoder

      public IncUintOptRleEncoder()
  • Method Details

    • write

      public void write(int v)
    • toUint8Array

      public Uint8Array toUint8Array()