UNPKG

scratch-sb1-converter

Version:

Scratch 1 (.sb) to Scratch 2 (.sb2) conversion library for Scratch 3.0

32 lines (24 loc) 599 B
class ProxyStream { constructor (stream) { this.stream = stream; } get uint8a () { return this.stream.uint8a; } set uint8a (value) { this.stream.uint8a = value; } get position () { return this.stream.position; } set position (value) { this.stream.position = value; } writeStruct (StructType, data) { return this.stream.writeStruct(StructType, data); } writeBytes (bytes, start = 0, end = bytes.length) { return this.stream.writeBytes(bytes, start, end); } } export {ProxyStream};