Question #249862 on Duetto changed:
https://answers.launchpad.net/duetto/+question/249862

Alessandro Pignotti posted a new comment:
Well, indeed Uint8ClampedArray does behave neither like char* or
unsigned char*. The reason is that instead of using plain modular binary
arithmetic it clamps (hence the name) values < 0 to 0 and values > 255
to 255.  Both Int8Array and Uint8Array will behave as expected. Clamped
data types are not at the moment supported by duetto (or by C++ in
general) please open a bug report, at the moment I don't have a solution
to suggest beside using Uint8Array/Int8Array unless you really need
clamping semantics. In the future we also plan to add operators support
in the future to let you directly use the [N] syntax on typed array in
C++.

-- 
You received this question notification because you are a member of
Leaningtech Team, which is an answer contact for Duetto.

-- 
Mailing list: https://launchpad.net/~leaningtech-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~leaningtech-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to