API reference / @evolu/common / Evolu/Protocol / ProtocolMessageBuffer
Interface: ProtocolMessageBuffer
Defined in: packages/common/src/Evolu/Protocol.ts:572
Mutable builder for constructing ProtocolMessage respecting size limits.
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
addMessage | readonly | (message ) => void | packages/common/src/Evolu/Protocol.ts:575 |
addRange | readonly | (range ) => void | packages/common/src/Evolu/Protocol.ts:584 |
canAddMessage | readonly | (message ) => boolean | packages/common/src/Evolu/Protocol.ts:573 |
canAddTimestampsRangeAndMessage | readonly | (timestamps , message ) => boolean | packages/common/src/Evolu/Protocol.ts:579 |
canSplitRange | readonly | () => boolean | packages/common/src/Evolu/Protocol.ts:577 |
getSize | readonly | () => number & Brand <"Int" > & Brand <"NonNegative" > & Brand <"Positive" > | packages/common/src/Evolu/Protocol.ts:589 |
unwrap | readonly | () => ProtocolMessage | packages/common/src/Evolu/Protocol.ts:588 |