Ets_State_Block_String_Write()
Note: Requires OPNET Development Kit
Abstract
Writes string into cross-platform block storage.
Syntax
Ets_State_Block_String_Write (block_hndl, str_ptr)
| Argument | Type | Description |
|---|---|---|
block_hndl |
EtsT_State_Block_Handle |
handle to block of cross-platform data |
str_ptr |
char * |
String to be written out in cross-platform representation |
Return Type
void
No return value.
Header
ets_pstate.h
Details
Blocks provide an abstraction away from a raw file. A block can be thought as if it were a piece of a file (but there are no seek functions). Data stored via blocks will be cross-platform, so that writing a string to a block on a Windows platform will read in correctly when running on a Linux platform.
Write will not fail (unless whole system is about to fail due to low memory). The block will grow as needed as values are serialized.