Skip to content

writeChunk (torrent.go) write to ram/path #896

Answered by anacrolix
stl3 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is possible by creating your own Storage implementation. In particular, in https://pkg.go.dev/github.com/anacrolix/[email protected]/storage#PieceImpl, if you handle writes to an in memory buffer that you manage, and then when the client is ready to mark data as complete with MarkComplete, you can ship it off to cloud storage/write it to disk (whether mounted from cloud or not, all good).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stl3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants