API reference / @evolu/common / Evolu/Protocol / ProtocolMessageBuffer
Interface: ProtocolMessageBuffer
Defined in: packages/common/src/Evolu/Protocol.ts:536
Mutable builder for constructing ProtocolMessage respecting size limits.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
addMessage | readonly | (message) => void | packages/common/src/Evolu/Protocol.ts:539 |
addRange | readonly | (range) => void | packages/common/src/Evolu/Protocol.ts:548 |
canAddMessage | readonly | (message) => boolean | packages/common/src/Evolu/Protocol.ts:537 |
canAddTimestampsRangeAndMessage | readonly | (timestamps, message) => boolean | packages/common/src/Evolu/Protocol.ts:543 |
canSplitRange | readonly | () => boolean | packages/common/src/Evolu/Protocol.ts:541 |
getSize | readonly | () => number & Brand<"Int"> & Brand<"NonNegative"> & Brand<"Positive"> | packages/common/src/Evolu/Protocol.ts:553 |
unwrap | readonly | () => ProtocolMessage | packages/common/src/Evolu/Protocol.ts:552 |