Package io.keikai.doc.collab.utils
Class UpdateDecoderV1
java.lang.Object
io.keikai.doc.collab.utils.DSDecoderV1
io.keikai.doc.collab.utils.UpdateDecoderV1
- All Implemented Interfaces:
DSDecoder,UpdateDecoder
-
Field Summary
Fields inherited from class io.keikai.doc.collab.utils.DSDecoderV1
_restDecoder -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.keikai.doc.collab.utils.DSDecoderV1
getRestDecoder, readDsClock, readDsLen, resetDsCurValMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.keikai.doc.collab.utils.DSDecoder
getRestDecoder, readDsClock, readDsLen, resetDsCurVal
-
Constructor Details
-
UpdateDecoderV1
- Parameters:
decoder-
-
-
Method Details
-
readLeftID
- Specified by:
readLeftIDin interfaceUpdateDecoder- Returns:
- {ID}
-
readRightID
- Specified by:
readRightIDin interfaceUpdateDecoder- Returns:
- {ID}
-
readClient
public int readClient()Description copied from interface:UpdateDecoderRead the next client id. Use this in favor of readID whenever possible to reduce the number of objects created.- Specified by:
readClientin interfaceUpdateDecoder
-
readInfo
public int readInfo()- Specified by:
readInfoin interfaceUpdateDecoder- Returns:
- {number} info An unsigned 8-bit integer
-
readString
- Specified by:
readStringin interfaceUpdateDecoder- Returns:
- {string}
-
readParentInfo
public boolean readParentInfo()- Specified by:
readParentInfoin interfaceUpdateDecoder- Returns:
- {boolean} isKey
-
readTypeRef
public int readTypeRef()- Specified by:
readTypeRefin interfaceUpdateDecoder- Returns:
- {number} info An unsigned 8-bit integer
-
readLen
public int readLen()Description copied from interface:UpdateDecoderWrite len of a struct - well suited for Opt RLE encoder.- Specified by:
readLenin interfaceUpdateDecoder- Returns:
- {number} len
-
readAny
- Specified by:
readAnyin interfaceUpdateDecoder- Returns:
- {any}
-
readBuf
- Specified by:
readBufin interfaceUpdateDecoder- Returns:
- {Uint8Array}
-
readJSON
Description copied from interface:UpdateDecoderLegacy implementation uses JSON parse. We use any-Decoding in v2.- Specified by:
readJSONin interfaceUpdateDecoder- Returns:
- {any}
-
readKey
- Specified by:
readKeyin interfaceUpdateDecoder- Returns:
- {string}
-