YamuxFrame class
Represents a Yamux frame
Constructors
- YamuxFrame({required YamuxFrameType type, required int flags, required int streamId, required int length, required Uint8List data})
- 
          
            const
- YamuxFrame.fromBytes(Uint8List bytes)
- 
          Creates a frame from bytes
            factory
Properties
- data → Uint8List
- 
  Frame data
  final
- flags → int
- 
  Frame flags
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- length → int
- 
  Frame length
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- streamId → int
- 
  Stream ID
  final
- type → YamuxFrameType
- 
  Frame type
  final
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toBytes() → Uint8List 
- Converts the frame to bytes
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  createData(int streamId, Uint8List data, {bool fin = false}) → YamuxFrame 
- Creates a DATA frame
- 
  goAway(int reason) → YamuxFrame 
- Creates a GO_AWAY frame
- 
  newStream(int streamId) → YamuxFrame 
- Creates a NEW_STREAM frame
- 
  ping(bool ack, [int? value]) → YamuxFrame 
- Creates a PING frame
- 
  reset(int streamId) → YamuxFrame 
- Creates a RESET frame
- 
  windowUpdate(int streamId, int delta) → YamuxFrame 
- Creates a WINDOW_UPDATE frame