Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor change to handle a null buffer. #57

Closed
wants to merge 73 commits into from
Closed

Minor change to handle a null buffer. #57

wants to merge 73 commits into from

Conversation

jwrosewell
Copy link
Contributor

No description provided.

fieldLength sets the length of the field name in the data structure to avoid repeated calls to strlen to determine the length of the string.
relative is a void pointer that can be used to relate use cases specific information to the evidence pair. For example; storing data related to the evidence pair that could take a long time to retrieve.
…sent and if not will be handlded in the macro COLLECTION_RELEASE.
…x. When this flag is true then the data set post init method can be used to build an index to the first value for each property and profile which can be used to improve the performance of subsequent retrieval operations. There is a small penalty at startup to build the index. indexes.h/c contain the bulk of the impelementation. profile.h/c has been changed to add a new method called fiftyoneDegreesProfileIterateValuesForPropertyWithIndex that can use the index rather than a binary search to find the first value.
Uses the available properties collection to reduce the memory used for the index when fewer than the total number of properties are initialised.
Offsets the profile indexes by the minimum profile id value to further reduce the memory used for the index.
Provides two default configurations with and without the index flag set.
…ifferently. New tests to cover the modified implementation need to be added.
…ffer tracking for remaining space and reporting the number of characters that were or would be added. Needed to consolidate string building into a single set of methods across the projects.
loskamo and others added 26 commits October 7, 2024 14:00
FEAT: interop Transform generate a default ctor
DOC: Transform.hpp, interop approach
Co-authored-by: Eugene Dorfman <[email protected]>
…ry.h and the short form fiftyone.h. Now includes a direct reference to memory.h and uses the full name for Malloc.
…es the macro to create an array of key value pairs.

# Conflicts:
#	pair.h
…ng header file.

Uses this header file within transform.c to remove verbosity.
Move some lines around for consistency with the rest of the project and modified some comments.
…ssert can result in a memory fault. Assert removed as there is not requirement for strings to be null terminated as the length is always provided.
…es to the array. There is no need to iterate over these additional values. The count of initial items is now used to limit the iterations rather than the current count of items in the array.
Refactored the method names to use "indices" to reflect the revised name of the file.
… FIFTYONE_DEGREES_EXCEPTIONS_DISABLED.

Tests won't pass with this directive enabled as some rely on the exception to test the fidelity of the failure. This is expected.
Some modification of transform.* requiired to support status codes where boolean return codes can't be used.
This reverts commit 5c06e71.

+REFACT: use fiftyoneDegreesTransformIterateResult

reintroduce exceptions after rebase
…e values associated with a profile and property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants