Package io.keikai.doc.collab.utils
Interface UpdateDecoder
-
- All Superinterfaces:
DSDecoder
- All Known Implementing Classes:
UpdateDecoderV1,UpdateDecoderV2
public interface UpdateDecoder extends DSDecoder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectreadAny()Uint8ArrayreadBuf()intreadClient()Read the next client id.intreadInfo()java.lang.ObjectreadJSON()Legacy implementation uses JSON parse.java.lang.StringreadKey()IDreadLeftID()intreadLen()Write len of a struct - well suited for Opt RLE encoder.booleanreadParentInfo()IDreadRightID()java.lang.StringreadString()intreadTypeRef()-
Methods inherited from interface io.keikai.doc.collab.utils.DSDecoder
getRestDecoder, readDsClock, readDsLen, resetDsCurVal
-
-
-
-
Method Detail
-
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
java.lang.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
java.lang.Object readAny()
- Returns:
- {any}
-
readBuf
Uint8Array readBuf()
- Returns:
- {Uint8Array}
-
readJSON
java.lang.Object readJSON()
Legacy implementation uses JSON parse. We use any-Decoding in v2.- Returns:
- {any}
-
readKey
java.lang.String readKey()
- Returns:
- {string}
-
-