PayloadFrame.fromBuffer constructor
PayloadFrame.fromBuffer(
- RSocketHeader header,
- RSocketByteBuffer buffer
Implementation
PayloadFrame.fromBuffer(RSocketHeader header, RSocketByteBuffer buffer) {
this.header = header;
completed = (header.flags & 0x40) > 0;
if (header.frameLength > 0) {
payload = decodePayload(buffer, header.metaPresent, header.frameLength);
}
}