BrightSign Object Reference Manual (FW 5.1) User Manual

Page 184

Advertising
background image

176

ReserveMegabytes(size As Integer) As Boolean: Reserves the specified amount of storage space. This
method is dynamic: The system software attempts to keep the space free even when parallel processes are filling
up the storage.

SetMaximumPoolSizeMegabytes(maximum_size As Integer) As Boolean: Specifies the maximum size
of an roAssetPool instance in megabytes. This method is more resource-intensive than

ReserveMegabytes(),

but it is useful when creating multiple pools on a storage device.

GetPoolSizeInMegabytes() As Integer

Validate(sync_spec As Object, options As roAssociativeArray) As Boolean: Checks the
SHA1 hash value of every file in the sync spec that is currently present in the pool. This method returns True if all
checks pass and False if one or more checks fail. Calling

GetFailureReason() will return information about the

corrupt file(s). Note that a True return may not mean that all files in the sync spec are currently present in the pool.
The second parameter represents a table of validation options: The key specifies the option and the value specifies
whether the option is enabled or not (as a Boolean value). Currently, the only option is "DeleteCorrupt", which
determines whether the method should automatically delete corrupt files or not.

QueryFiles(a As Object) As Object

AssetsReady(collection As Object) As Boolean

Advertising