import { getNVMFileIDStatic , gotDeserializationOptions , NVMFile , NVMFileCreationOptions , NVMFileDeserializationOptions , nvmFileID , } from "./NVMFile" ; export interface ApplicationDataFileOptions extends NVMFileCreationOptions { data : Buffer ; } @ nvmFileID ( 200 ) export class ApplicationDataFile extends NVMFile { public constructor ( options ) { super ( options ) ; if ( ! gotDeserializationOptions ( options ) ) { this . payload = options . data ; } } public get data ( ) : Buffer { return this . payload ; } public set data ( value ) { this . payload = value ; } } export const ApplicationDataFileID = getNVMFileIDStatic ( ApplicationDataFile ) ;