Skip to content

Pointer.pointerTo... does not handle empty arrays #257

@chinasaur

Description

@chinasaur

Not too surprising that this causes problems, but maybe it could be addressed or else just documented?

I have a case of:
clbuffer.write(queue, Pointer.pointerToShorts(shortArr);

That I had to change for edge case to:
if (shortArr.length > 0) clbuffer.write(queue, Pointer.pointerToShorts(shortArr);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions