Suggest a Feature

Share your Roku suggestions or request a feature from the Roku team! Add a kudo to existing topics to show your support, or create a new topic for new requests.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Binge Watcher

Improve ifArray.Append

feature request on Slack 

Add a start_pos and length parameter to ifArray.Append, like ifByteArray.AppendFile has, so we can choose a length of bytes from within an array to append onto another. The work around to use AppendFile and then read the file back into an array is odd and likely slower.

0 Kudos
Binge Watcher

Re: Improve ifArray.Append

I continue to encounter this missing functionality and it pains me. I feel like it's a necessity for an app that needs to manipulate raw data. The implementation in the API should be easy.

Here is a documented C# analog in case it's not clear what I'm looking for:
C# Array.Copy 
I figure you'd just update Append though.

Today in BrightScript, how would you copy some part of one byte array into another?
Yes you can write your own function in Brightscript but this runs insanely slow compared to a memcpy that could be done under the hood. My application is needing to reformat an incoming stream of data so I need to copy chunks from one byte into another, at a rate that a user defined function can't keep up with.

Can this functionality be added to the API? 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.