dataBytes property

int get dataBytes

The stream data this packet carries, in bytes: what the congestion window and flow control account in. Retransmission carries the frames over, so it is the same under every sequence the packet is sent under.

Implementation

int get dataBytes {
  var n = 0;
  for (final f in frames) {
    if (f is StreamFrame) n += f.data.length;
  }
  return n;
}