LspMessageFramer class final
Incremental Content-Length framer. Not thread-safe (Dart is single threaded); one framer per server connection.
Constructors
- LspMessageFramer([Uint8List? seed])
-
Creates a framer, optionally seeded with the unparsed
seedremainder left by a previous reader so a restarted reader resumes mid-message.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
drain(
{void onResync(String headerText)?}) → List< String> - Returns the JSON text of every complete message currently buffered.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
push(
List< int> chunk) → void - Appends a freshly read chunk to the pending buffer.
-
remainder(
) → Uint8List - The unparsed remainder, to persist when the reader stops.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited