Midware TMWBuffer.SaveToFile

From Overbyte
Jump to navigation Jump to search

Main page -> Midware component reference -> TMWBuffer -> SaveToFile

Definition

procedure SaveToFile(FileName:String);

Description

Save TMWBuffer data to a file. File format is simple: first eight bytes are 'MWBUFFER' string, next char is a version number, currently '1', next eight bytes are DataBufferCount expressed in hexadecimal format. Remaining bytes are exact TMWBuffer content copy. Internally, SaveToFile is implemented using SaveToStream with a TFileStream. See also LoadFromFile and LoadFromStream.