Module std

Std contains standard functions related to Symbian development's data structure.

Functions

std.descriptor8:rawData () Get the raw data that this descriptor is containing.
rawUtf16ToString (raw, length) Convert a raw 8-bit C FFI byte array into a 16-bit Unicode string/
std.descriptor16:rawData () Get the raw data that this descriptor is containing.
std.requestStatus:value () Retrieve the current value of the request status
std.requestStatus:flags () Retrieve the current flags of the request status

Fields

descriptor Abstract class which allows the containment of data.
descriptor8 Detailed descriptor that is designed to hold 8-bit data.
descriptor16 Detailed descriptor that is designed to hold 16-bit data.
requestStatus Struct holding the status of a request.


Functions

std.descriptor8:rawData ()
Get the raw data that this descriptor is containing.

Returns:

    A raw FFI byte array containing data.
rawUtf16ToString (raw, length)
Convert a raw 8-bit C FFI byte array into a 16-bit Unicode string/

Parameters:

  • raw The raw byte array to convert.
  • length The number of characters that the result string should produce.

Returns:

    Converted string object.
std.descriptor16:rawData ()
Get the raw data that this descriptor is containing.

Returns:

    A raw FFI byte array containing data.
std.requestStatus:value ()
Retrieve the current value of the request status

Returns:

    A 32-bit integer as the status code.
std.requestStatus:flags ()
Retrieve the current flags of the request status

Returns:

    A 32-bit integer, which each bit as a flag.

Fields

descriptor
Abstract class which allows the containment of data.
  • pr The process where this descriptor lives on.
  • addr The address of the descriptor in the process's memory.
descriptor8
Detailed descriptor that is designed to hold 8-bit data.

This kind of descriptor usually used to hold 8-bit string or binary data, and can be coverted to string by using tostring.

  • pr The process where this descriptor lives on.
  • addr The address of the descriptor in the process's memory.
descriptor16
Detailed descriptor that is designed to hold 16-bit data.

This kind of descriptor usually used to hold 16-bit Unicode string, and can be coverted to string by using tostring.

  • pr The process where this descriptor lives on.
  • addr The address of the descriptor in the process's memory.
requestStatus
Struct holding the status of a request.

On EKA1, this struct simply holds an integer, which contains the result code of completed operation.

However, on EKA2, 32-bit flag bitarray is also added to this struct to tell the status of the sync object associated with this request

  • pr The process where this request status lives on.
  • addr The address of the request status in the process's memory.
generated by LDoc 1.4.6 Last updated 2021-10-30 01:56:22