getSize Method

Package: Aladdin

Description

Retrieves the byte size of a memory file from a Sentinel protection key.

Syntax

public int getSize (long fileid)

Parameters

fileid

Identifier for the file that is to be queried.

Possible values are:

>For default read-only memory: HASP_FILEID_RO

>For default read/write memory: HASP_FILEID_RW

>For a dynamic memory file (read-only, read/write, or read/write-once): The ID that was assigned to the file when the file was created. The ID is a value from 1 through 65471.

NOTE   Dynamic memory files are supported by Sentinel SL keys and Sentinel HL (Driverless configuration) keys (excluding HL Basic and HL Pro keys).

size

Pointer to the resulting file size.

Usage Notes

This method is used to determine the size of a memory file in a Sentinel protection key. This information is useful when reading or writing to the memory of a Sentinel protection key.

Related Topics

Read Method

Write Method