hGet package:foundation

Read binary data directly from the specified Handle. First argument is the Handle to read from, and the second is the number of bytes to read. It returns the bytes read, up to the specified size, or an empty array if EOF has been reached. hGet is implemented in terms of hGetBuf.