Is regular js Arrays the only accepted type to interact with SFSDataType.BYTE_ARRAY in SFSArrays/SFSObjects?
If so, I'd like to suggest you add ArrayBuffer (or at least a typed array) as a valid type as well in order to avoid unnecessary data conversions when the original data is already in ArrayBuffer format.
ArrayBuffer support
Re: ArrayBuffer support
Hello,
yes I think you're right. The current version of the API is representing byte arrays as number arrays which is unoptimized.
Instead we could improve both putByteArray() and getByteArray() using the Uint8Array JS type, to keep memory usage in check and restrict types to actual bytes.
Makes sense?
Thanks
yes I think you're right. The current version of the API is representing byte arrays as number arrays which is unoptimized.
Instead we could improve both putByteArray() and getByteArray() using the Uint8Array JS type, to keep memory usage in check and restrict types to actual bytes.
Makes sense?
Thanks
Re: ArrayBuffer support
Yes that sounds like a good improvement.
Re: ArrayBuffer support
Okay, we'll prepare a new release during the week.
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 38 guests