Deleting the contents of a byte array

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Zane
Flowcode v5 User
Posts: 199
Joined: Thu Sep 10, 2009 10:57 pm
Location: New Zealand
Has thanked: 93 times
Been thanked: 76 times
Contact:

Deleting the contents of a byte array

Post by Zane »

Hi,

I was wondering, is there an easy way to delete the entire contents of a byte array or do you have to delete each byte 1 at a time?

Thanks

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Deleting the contents of a byte array

Post by DavidA »

I dont think there is currently. It would be nice to have, and is present in a lot of high level languages.

The easiest way to do this would probably be a small tight loop which iterated over every byte and set it to NULL

Post Reply