Class UpdateDecoderV1

    • Constructor Detail

      • UpdateDecoderV1

        public UpdateDecoderV1​(Decoder decoder)
        Parameters:
        decoder -
    • Method Detail

      • readClient

        public int readClient()
        Description copied from interface: UpdateDecoder
        Read the next client id. Use this in favor of readID whenever possible to reduce the number of objects created.
        Specified by:
        readClient in interface UpdateDecoder
      • readInfo

        public int readInfo()
        Specified by:
        readInfo in interface UpdateDecoder
        Returns:
        {number} info An unsigned 8-bit integer
      • readString

        public java.lang.String readString()
        Specified by:
        readString in interface UpdateDecoder
        Returns:
        {string}
      • readTypeRef

        public int readTypeRef()
        Specified by:
        readTypeRef in interface UpdateDecoder
        Returns:
        {number} info An unsigned 8-bit integer
      • readLen

        public int readLen()
        Description copied from interface: UpdateDecoder
        Write len of a struct - well suited for Opt RLE encoder.
        Specified by:
        readLen in interface UpdateDecoder
        Returns:
        {number} len
      • readAny

        public java.lang.Object readAny()
        Specified by:
        readAny in interface UpdateDecoder
        Returns:
        {any}
      • readJSON

        public java.lang.Object readJSON()
        Description copied from interface: UpdateDecoder
        Legacy implementation uses JSON parse. We use any-Decoding in v2.
        Specified by:
        readJSON in interface UpdateDecoder
        Returns:
        {any}
      • readKey

        public java.lang.String readKey()
        Specified by:
        readKey in interface UpdateDecoder
        Returns:
        {string}