Apps Components Interfaces All Files Source Tree | source: tos.lib.TinyDB.DBBufferC.nc |
Required Interfaces |
Provided Interfaces |
Variables |
Function Index |
Returns: | err_OutOfMemory if the policy indicates that no more inserts should be allowed |
Function Descriptions |
Note that this may keep a reference to schema or name until after pending is complete (so neither may be allocated on the callers stack!)
Signals allocComplete when allocation is complete if *pending is true on return
Parameters: |
bufferId - The buffer to allocate type - The type of the buffer (see DBBuffer.h -- only kRAM and kRADIO are supported) size - The size (in rows) of the buffer policy - The eviction policy to use with the buffer (see DBBuffer.h) schema - The schema (layout) of rows in this buffer (expressed as a query) name - The name of the schema (or NULL if it has no name) pending - On return, set to true if the buffer is still being allocated (expect allocComplete if true). data - is currently unused |
Returns: | err_UnsupportedPolicy if the specified policy can't be applied |
Returns: | the buffer id that corresponds to the specified bufIdx if special is false, bufIdx is just the query id that we want to read from otherwise, it's the index into special buffers -- e.g. catalog buffers -- that we want to use |