Add read(void*) functions in InputStream