FileWriteStream
An open Steam Cloud write stream, from openWriteStream(). Write chunks, then call close() to commit them or cancel() to discard them.
If the object is garbage-collected without either call, the SDK closes the stream on drop, which commits the chunks written so far.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FileWriteStream():
FileWriteStream
Returns
Section titled “Returns”FileWriteStream
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel():
boolean
Discards the chunks without committing them. The stream cannot be used afterwards. The effect on the existing file is unverified against a live Steam client.
Returns
Section titled “Returns”boolean
true if Steam accepted the cancel; false if the stream was already closed or Steam refused it.
close()
Section titled “close()”close():
boolean
Commits the chunks written so far, so they become the file’s content. The stream cannot be used afterwards.
Returns
Section titled “Returns”boolean
true if Steam accepted the commit; false if the stream was already closed or Steam refused the close.
writeChunk()
Section titled “writeChunk()”writeChunk(
data):boolean
Writes one chunk to the stream. Nothing changes in the cloud file until close(). The header caps a chunk at 100 MB.
Parameters
Section titled “Parameters”Buffer
The bytes of this chunk.
Returns
Section titled “Returns”boolean
true if Steam accepted the chunk; false if the stream is already closed or Steam refused the chunk.
Turn ideas into shipped software.
HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.
- Smart
- OpenSpec workflows turn intent into a path from proposal to shipped change.
- Efficient
- Multi-agent execution runs research, build, and review in parallel.
- Fun
- Rich UI interactions make planning, agent work, and projects easier to follow.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
