Let rac.Writer support shared resources

This commit is contained in:
Nigel Tao committed 2019-08-09 13:33:09 +10:00
1 parent 1cb1f1d527
commit ac4fed2275
5 files changed
+284 -46

No files matched your search

+6
View File
@@ -43,6 +43,12 @@ func putU64LE(b []byte, v uint64) {
b[7] = byte(v >> 56)
}
// OptResource is an option type, optionally holding a ChunkWriter-specific
// identifier for a shared resource.
//
// Zero means that the option is not taken: no shared resource is used.
type OptResource uint32
// ChunkWriter provides a relatively simple way to write a RAC file - one that
// is created starting from nothing, as opposed to incrementally modifying an
// existing RAC file.