D
Dirk Bruere at NeoPax
I need to fill a predefined byte array with hexadecimal bytes.
I can do it like this:
public static byte[] default0 = { (byte)0x87, (byte)0x3f, ... };
By casting each value.
Which is a bit of a pain considering I have to copy and paste from an
existing text source of hex bytes (about 20,000 bytes).
Is there a representation I can use such that I do not need to cast each
one individually?
--
Dirk
http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.onetribe.me.uk/wordpress/?cat=5 - Our podcasts on weird stuff
I can do it like this:
public static byte[] default0 = { (byte)0x87, (byte)0x3f, ... };
By casting each value.
Which is a bit of a pain considering I have to copy and paste from an
existing text source of hex bytes (about 20,000 bytes).
Is there a representation I can use such that I do not need to cast each
one individually?
--
Dirk
http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.onetribe.me.uk/wordpress/?cat=5 - Our podcasts on weird stuff