io: pub the RandomReader interface (#12222)

pull/12226/head
lydiandy 2021-10-18 15:51:36 +08:00 committed by GitHub
parent 5dd3864617
commit 2070839722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,6 +63,6 @@ pub fn read_any(mut r Reader) ?[]byte {
}
// RandomReader represents a stream of data that can be read from at a random location
interface RandomReader {
pub interface RandomReader {
read_from(pos u64, mut buf []byte) ?int
}