Interface UpdateDecoder

All Superinterfaces:
DSDecoder
All Known Implementing Classes:
UpdateDecoderV1, UpdateDecoderV2

public interface UpdateDecoder extends DSDecoder
  • Method Details

    • readLeftID

      ID readLeftID()
      Returns:
      {ID}
    • readRightID

      ID readRightID()
      Returns:
      {ID}
    • readClient

      int readClient()
      Read the next client id. Use this in favor of readID whenever possible to reduce the number of objects created.
    • readInfo

      int readInfo()
      Returns:
      {number} info An unsigned 8-bit integer
    • readString

      String readString()
      Returns:
      {string}
    • readParentInfo

      boolean readParentInfo()
      Returns:
      {boolean} isKey
    • readTypeRef

      int readTypeRef()
      Returns:
      {number} info An unsigned 8-bit integer
    • readLen

      int readLen()
      Write len of a struct - well suited for Opt RLE encoder.
      Returns:
      {number} len
    • readAny

      Object readAny()
      Returns:
      {any}
    • readBuf

      Uint8Array readBuf()
      Returns:
      {Uint8Array}
    • readJSON

      Object readJSON()
      Legacy implementation uses JSON parse. We use any-Decoding in v2.
      Returns:
      {any}
    • readKey

      String readKey()
      Returns:
      {string}