Platforms to show: All Mac Windows Linux Cross-Platform

Back to ArchiveWriterMBS class.

Previous items

ArchiveWriterMBS.SetPassphrase(Password as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the passphrase to use.
Example
dim a as new ArchiveWriterMBS

a.SetFormatZip
a.ZipSetCompressionDeflate

a.SetOptions "zip:encryption=zipcrypt" // enable encryption
a.SetPassphrase "HelloWorld" // set password

Alternatively you can use the Passphrase event.
Lasterror property is set.

Some examples using this method:

ArchiveWriterMBS.SetSkipFile(DeviceID as Int64, FileNo as Int64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 19.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Record the dev/ino of a file that will not be written.

This is generally set to the dev/ino of the archive being written.
Lasterror property is set.

ArchiveWriterMBS.WriteData(data as MemoryBlock) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Writes data to current file.

Returns number of bytes written.
Lasterror property is set.

See also:

ArchiveWriterMBS.WriteData(data as Ptr, Size as Int64) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Writes data to current file.

Returns number of bytes written.
Lasterror property is set.

See also:

ArchiveWriterMBS.WriteData(data as string) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Writes data to current file.

Returns number of bytes written.
Lasterror property is set.

See also:

ArchiveWriterMBS.WriteData(SourceArchive as ArchiveReaderMBS) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 19.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Writes data to current file.

Loops over blocks in source archive entry and copies them all to current archive.
Returns number of bytes written.
Lasterror property is set.

See also:

ArchiveWriterMBS.WriteHeader(Entry as ArchiveEntryMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Writes an archive item.

Lasterror property is set.

Some examples using this method:

ArchiveWriterMBS.ZipSetCompressionDeflate

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets compression for zip to deflate.

Lasterror property is set.

Some examples using this method:

ArchiveWriterMBS.ZipSetCompressionStore

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Archive MBS Compression Plugin 16.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets compression for zip to store.

Store is no compression.
Lasterror property is set.

Some examples using this method:

Previous items

The items on this page are in the following plugins: MBS Compression Plugin.


The biggest plugin in space...