Skip to content

Commit ddbc2ee

Browse files
committed
Add close to RandomAccessBinaryReader
1 parent 61ee0c4 commit ddbc2ee

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.0
2+
3+
- Add `close` to `RandomAccessBinaryReader`.
4+
15
## 2.0.0
26

37
- **BREAKING** Rename `RandomAccessFileRASource` to `FileRASource`.

lib/src/random_access_binary_reader.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,8 @@ class RandomAccessBinaryReader {
7979
final data = await mustReadBytes(8);
8080
return ByteData.sublistView(data).getUint64(0, ed);
8181
}
82+
83+
Future<void> close() {
84+
return source.close();
85+
}
8286
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: random_access_source
22
description: A shared interface for common random access data.
3-
version: 2.0.0
3+
version: 2.1.0
44
repository: https://github.com/flutter-cavalry/random_access_source
55

66
environment:

0 commit comments

Comments
 (0)