Package io.keikai.doc.collab.utils
Class UpdateEncoderV1
java.lang.Object
io.keikai.doc.collab.utils.DSEncoderV1
io.keikai.doc.collab.utils.UpdateEncoderV1
- All Implemented Interfaces:
UpdateEncoder
-
Field Summary
Fields inherited from class io.keikai.doc.collab.utils.DSEncoderV1
_restEncoder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetRestEncoder(Encoder restEncoder) voidvoidwriteBuf(Uint8Array buf) voidwriteClient(int client) Use writeClient and writeClock instead of writeID if possible.voidwriteDsClock(int clock) voidwriteDsLen(int len) voidwriteInfo(int info) voidvoidvoidwriteLeftID(ID id) voidwriteLen(int len) Write len of a struct - well suited for Opt RLE encoder.voidwriteParentInfo(boolean isYKey) voidwriteRightID(ID id) voidvoidwriteTypeRef(int info) Methods inherited from class io.keikai.doc.collab.utils.DSEncoderV1
getRestEncoder, resetDsCurVal, setRestEncoder, toUint8Array, writeDsClock, writeDsLen
-
Constructor Details
-
UpdateEncoderV1
public UpdateEncoderV1()
-
-
Method Details
-
writeLeftID
- Specified by:
writeLeftIDin interfaceUpdateEncoder
-
writeRightID
- Specified by:
writeRightIDin interfaceUpdateEncoder
-
writeClient
public void writeClient(int client) Description copied from interface:UpdateEncoderUse writeClient and writeClock instead of writeID if possible.- Specified by:
writeClientin interfaceUpdateEncoder
-
writeInfo
public void writeInfo(int info) - Specified by:
writeInfoin interfaceUpdateEncoder- Parameters:
info- An unsigned 8-bit integer
-
writeString
- Specified by:
writeStringin interfaceUpdateEncoder
-
writeParentInfo
public void writeParentInfo(boolean isYKey) - Specified by:
writeParentInfoin interfaceUpdateEncoder
-
writeTypeRef
public void writeTypeRef(int info) - Specified by:
writeTypeRefin interfaceUpdateEncoder- Parameters:
info- An unsigned 8-bit integer
-
writeLen
public void writeLen(int len) Description copied from interface:UpdateEncoderWrite len of a struct - well suited for Opt RLE encoder.- Specified by:
writeLenin interfaceUpdateEncoder
-
writeAny
- Specified by:
writeAnyin interfaceUpdateEncoder
-
writeBuf
- Specified by:
writeBufin interfaceUpdateEncoder
-
writeJSON
- Specified by:
writeJSONin interfaceUpdateEncoder
-
writeKey
- Specified by:
writeKeyin interfaceUpdateEncoder
-
getRestEncoder
Encoder getRestEncoder() -
setRestEncoder
-
toUint8Array
Uint8Array toUint8Array() -
resetDsCurVal
void resetDsCurVal() -
writeDsClock
void writeDsClock(int clock) - Parameters:
clock-
-
writeDsLen
void writeDsLen(int len) - Parameters:
len-
-