hashgraph / hashgraph/pbj

(File)Channel support in Data I/O

Open
#80 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
44
Forks
15
Avg merge
1d 15h
Merged PRs (30d)
12

Description

Data I/O classes like provide methods to wrap existing objects, streams or byte buffers, and leverage uniformed consistent Data I/O APIs on top of them. It would be great if Java channels (e.g. `FileChannel`) were supported, too. Today I have to use a workaround: for an opened file channel, map the file into memory first, and then wrap the resulting `MappedByteBuffer` into `BufferedData`. Mapped buffers are not very trivial to maintain, sometimes it would be much simpler to wrap file channels directly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.