Writes data from a specified range in a List<int> to the socket.
Writes into the socket from a List<int>. If start
is present, the bytes will be written to the socket starting from index start
. If start
is not present, the bytes will be written starting from index 0. If end
is present, the end
- start
bytes will be written into the socket starting at index start
. If end
is not provided, buffer.length
elements will be written to the socket starting from index start
. If end
== start
, nothing happens.
void writeFromSync(List<int> buffer, [int start = 0, int end]);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/RawSynchronousSocket/writeFromSync.html