Main Site Documentation

Memset functionality?


#1

Hey, I have an application where I want to initialize a range of a byte array to a given value. Is there some kind of memset(…) type function available in .netmf C#?


#2

Unfortunately not. You have to initialize it in a loop or during construction.


#3

Can’t check it now, but does Array.Clear exist in MF?


#4

It does.


#5

Thanks. That helps. Maybe we need functions for buffer manipulation in the Util namespace?