@etothepii/satisfactory-file-parser
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -10,2 +10,4 @@ export type * from './parser/satisfactory/blueprint/blueprint.types'; | ||
export type * from './parser/satisfactory/save/save.types'; | ||
export { ByteReader } from './parser/byte/byte-reader.class'; | ||
export { ByteWriter } from './parser/byte/byte-writer.class'; | ||
export { BlueprintConfigReader, BlueprintReader } from './parser/satisfactory/blueprint/blueprint-reader'; | ||
@@ -12,0 +14,0 @@ export { BlueprintConfigWriter, BlueprintWriter } from './parser/satisfactory/blueprint/blueprint-writer'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Parser = exports.UnsupportedVersionError = exports.ParserError = exports.CorruptSaveError = exports.CompressionLibraryError = exports.SaveWriter = exports.SaveReader = exports.BlueprintWriter = exports.BlueprintConfigWriter = exports.BlueprintReader = exports.BlueprintConfigReader = exports.SatisfactorySave = exports.Level = exports.SaveEntity = exports.SaveComponent = exports.ObjectReference = exports.DataFields = void 0; | ||
exports.Parser = exports.UnsupportedVersionError = exports.ParserError = exports.CorruptSaveError = exports.CompressionLibraryError = exports.SaveWriter = exports.SaveReader = exports.BlueprintWriter = exports.BlueprintConfigWriter = exports.BlueprintReader = exports.BlueprintConfigReader = exports.ByteWriter = exports.ByteReader = exports.SatisfactorySave = exports.Level = exports.SaveEntity = exports.SaveComponent = exports.ObjectReference = exports.DataFields = void 0; | ||
var DataFields_1 = require("./parser/satisfactory/objects/DataFields"); | ||
@@ -32,2 +32,6 @@ Object.defineProperty(exports, "DataFields", { enumerable: true, get: function () { return DataFields_1.DataFields; } }); | ||
Object.defineProperty(exports, "SatisfactorySave", { enumerable: true, get: function () { return satisfactory_save_1.SatisfactorySave; } }); | ||
var byte_reader_class_1 = require("./parser/byte/byte-reader.class"); | ||
Object.defineProperty(exports, "ByteReader", { enumerable: true, get: function () { return byte_reader_class_1.ByteReader; } }); | ||
var byte_writer_class_1 = require("./parser/byte/byte-writer.class"); | ||
Object.defineProperty(exports, "ByteWriter", { enumerable: true, get: function () { return byte_writer_class_1.ByteWriter; } }); | ||
var blueprint_reader_1 = require("./parser/satisfactory/blueprint/blueprint-reader"); | ||
@@ -34,0 +38,0 @@ Object.defineProperty(exports, "BlueprintConfigReader", { enumerable: true, get: function () { return blueprint_reader_1.BlueprintConfigReader; } }); |
@@ -1,1 +0,34 @@ | ||
export {}; | ||
import { Alignment } from "./alignment.enum"; | ||
export declare abstract class ByteReader { | ||
protected bufferView: DataView; | ||
protected fileBuffer: ArrayBuffer; | ||
protected alignment: Alignment; | ||
protected currentByte: number; | ||
protected handledByte: number; | ||
protected maxByte: number; | ||
protected lastStrRead: number; | ||
constructor(fileBuffer: ArrayBuffer, alignment: Alignment); | ||
reset(newFileBuffer: ArrayBuffer): void; | ||
skipBytes(byteLength?: number): void; | ||
readByte(): number; | ||
readBytes(count: number): Uint8Array; | ||
readHex(hexLength: number): string; | ||
readInt8(): number; | ||
readUint8(): number; | ||
readUint16(): number; | ||
readInt32(): number; | ||
readUint32(): number; | ||
readLong(): bigint; | ||
readFloat(): number; | ||
readDouble(): number; | ||
protected getStringInfo(): { | ||
payload: string; | ||
counter: number; | ||
}; | ||
getBufferPosition: () => number; | ||
getBufferSlice: (begin: number, end: number | undefined) => ArrayBuffer; | ||
getBufferProgress: () => number; | ||
getBufferLength: () => number; | ||
getBuffer: () => ArrayBuffer; | ||
readString(): string; | ||
} |
@@ -1,1 +0,33 @@ | ||
export {}; | ||
import { Alignment } from "./alignment.enum"; | ||
export declare abstract class ByteWriter { | ||
protected alignment: Alignment; | ||
protected bufferArray: ArrayBuffer; | ||
protected bufferView: DataView; | ||
protected currentByte: number; | ||
constructor(alignment: Alignment, bufferSize?: number); | ||
skipBytes(count?: number): void; | ||
jumpTo(pos: number): void; | ||
writeByte(value: number): void; | ||
writeBytesArray(bytes: number[]): void; | ||
writeBytes(bytes: Uint8Array): void; | ||
writeInt8(value: number): void; | ||
writeUint8(value: number): void; | ||
writeInt16(value: number): void; | ||
writeUint16(value: number): void; | ||
writeInt32(value: number): void; | ||
writeUint32(value: number): void; | ||
writeInt64(value: bigint): void; | ||
writeUint64(value: bigint): void; | ||
writeFloat(value: number): void; | ||
writeDouble(value: number): void; | ||
writeString(value: string): void; | ||
static IsASCIICompatible: (value: string) => boolean; | ||
getBufferPosition: () => number; | ||
getBufferSlice: (start: number, end?: number) => ArrayBuffer; | ||
writeBinarySizeFromPosition(lenIndicatorPos: number, start: number): void; | ||
protected extendBufferIfNeeded(countNeededBytes: number, factor?: number): void; | ||
protected truncateBuffer(): void; | ||
endWriting(): ArrayBuffer; | ||
static ToInt32(num: number): Uint8Array; | ||
static AppendBuffer(buffer1: ArrayBuffer, buffer2: ArrayBuffer): ArrayBuffer; | ||
} |
{ | ||
"name": "@etothepii/satisfactory-file-parser", | ||
"author": "etothepii", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "A file parser for satisfactory files. Includes save files and blueprint files.", | ||
@@ -6,0 +6,0 @@ "module": "Node16", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196586
4247