readSync abstract method

List<int> readSync(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.

Source

List<int> readSync(int bytes);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/RawSynchronousSocket/readSync.html