Skip to content

Conversation

@N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Feb 6, 2024

Allows converting the internal data from one data type to another.

Jeroen Eggermont suggested that it could be useful to convert data to a smaller data type, if possible. Example:

// Converts internal data to std::vector<std::int8_t>
pointData->convertInternalData(PointData::ElementTypeSpecifier::int8);

Which is equivalent to:

pointData->convertInternalData<std::int8_t>();

@N-Dekker N-Dekker requested a review from jeggermont February 6, 2024 15:41
@N-Dekker N-Dekker force-pushed the feature/PointData-convertInternalData branch from 7b01a48 to be12f0e Compare February 7, 2024 10:15
@N-Dekker N-Dekker requested a review from ThomasKroes February 7, 2024 16:35
Allows converting the internal data from one data type to another.

Jeroen Eggermont suggested that it could be useful to convert data to a smaller data type, if possible. Example:

    // Converts internal data to std::vector<std::int8_t>
    pointData->convertInternalData(PointData::ElementTypeSpecifier::int8);

Which is equivalent to:

    pointData->convertInternalData<std::int8_t>();
@N-Dekker N-Dekker force-pushed the feature/PointData-convertInternalData branch from be12f0e to ffc605f Compare February 8, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants