PayloadFrame.fromBuffer constructor

PayloadFrame.fromBuffer(
  1. RSocketHeader header,
  2. 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);
  }
}