ResourceSize Property
The size of the file.
Syntax
ANSI (Cross Platform) int64 GetResourceSize(int iResourceIndex); Unicode (Windows) LONG64 GetResourceSize(INT iResourceIndex);
- (long long)resourceSize:(int)resourceIndex;
#define PID_HADOOPDFS_RESOURCESIZE 54 IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_HadoopDFS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_HadoopDFS_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
0
Remarks
The size of the file.
This property reflects the size of the file, in bytes. Always 0 for directories.
Note that the actual amount of space the file consumes will be greater than this property's value if ResourceReplication is greater than 1. In that case, multiply the values of this property and ResourceReplication to obtain the total number of bytes consumed by the file and its replicas.
The ResourceIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ResourceCount property.
This property is read-only and not available at design time.
Data Type
Long64