MqttPublishMessage.fromByteBuffer constructor

MqttPublishMessage.fromByteBuffer(
  1. MqttHeader header,
  2. MqttByteBuffer messageStream
)

Initializes a new instance of the MqttPublishMessage class.

Implementation

MqttPublishMessage.fromByteBuffer(
    MqttHeader header, MqttByteBuffer messageStream) {
  this.header = header;
  readFrom(messageStream);
}