readSync method
- int bytes
Reads up to bytes
bytes from the socket.
Blocks and waits for a response of up to a specified number of bytes sent by the socket. bytes
specifies the maximum number of bytes to be read. Returns the list of bytes read, which could be less than the value specified by bytes
.
Implementation
List<int>? readSync(int bytes);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/RawSynchronousSocket/readSync.html