@etothepii/satisfactory-file-parser
    Preparing search index...

    Class SaveWriter

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    alignment: Alignment
    bufferArray: ArrayBuffer
    bufferView: DataView
    context: ReaderWriterContext = ...
    currentByte: number

    Methods

    • automatically extends the current buffer if the given space exceeds the available rest capacity of the current buffer.

      Parameters

      • countNeededBytes: number

        the needed space

      • factor: number = 1.5

        how big the appended buffer should be in comparison to the current one. Values >= 1 make sense.

      Returns void

    • Parameters

      • bufferArray: ArrayBuffer
      • compressionInfo: ChunkCompressionInfo
      • blueprintOrSave: "blueprint" | "save"
      • onBinaryBeforeCompressing: (binary: ArrayBuffer) => void
      • onChunk: (chunk: Uint8Array) => void
      • alignment: Alignment = Alignment.LITTLE_ENDIAN

      Returns ChunkSummary[]