component.h
void * fiftyoneDegreesComponentReadFromFile(const fiftyoneDegreesCollectionFile *file, uint32_t offset, fiftyoneDegreesData *data, fiftyoneDegreesException *exception)
Read a component from the file collection provided and store in the data pointer.
Definition: component.c:78
const int32_t nameOffset
Offset in the strings data structure to the name.
Definition: component.h:65
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition: collection.h:302
Type of collection where the collection is streamed from file.
Definition: collection.h:437
const uint16_t httpHeaderCount
The number of HTTP header offsets at httpHeaderFirstOffset.
Definition: component.h:69
Data structure used for reusing memory which may have been allocated in a previous operation.
Definition: data.h:99
uint32_t fiftyoneDegreesComponentGetHttpHeader(fiftyoneDegreesComponent *component, uint16_t index, fiftyoneDegreesCollection *strings, fiftyoneDegreesCollectionItem *item, fiftyoneDegreesException *exception)
Get the offset in the strings collection for the name of the HTTP header at the specified index withi...
Definition: component.c:58
const byte componentId
The unique Id of the component.
Definition: component.h:64
void fiftyoneDegreesComponentInitList(fiftyoneDegreesCollection *components, fiftyoneDegreesList *list, uint32_t count, fiftyoneDegreesException *exception)
Initialises the list of components.
Definition: component.c:96
EXTERNAL uint32_t fiftyoneDegreesComponentGetDefaultProfileId(fiftyoneDegreesCollection *profiles, fiftyoneDegreesComponent *component, fiftyoneDegreesException *exception)
Get the default profile id for the component provided.
Definition: component.c:26
const uint32_t httpHeaderFirstOffset
The first HTTP header string offset.
Definition: component.h:71
Structure used to represent a 51Degrees exception and passed into methods that might generate excepti...
Definition: exceptions.h:109
EXTERNAL fiftyoneDegreesString * fiftyoneDegreesComponentGetName(fiftyoneDegreesCollection *stringsCollection, fiftyoneDegreesComponent *component, fiftyoneDegreesCollectionItem *item, fiftyoneDegreesException *exception)
Returns the string name of the component using the item provided.
Definition: component.c:46
const int32_t defaultProfileOffset
Offset in the profiles data structure to the default profile.
Definition: component.h:67
All the shared methods and fields required by file, memory and cached collections.
Definition: collection.h:400
