Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Javascript side create byte array

$
0
0
Hi Guys, this is a simple issue but I cannot get it to work. I need to create a byte array on the javascript side but I´m getting the following error depending on the type I use:

byte is not a function


I´ve tried the following:

var message = new byte[4096];
var message = new System.Byte[4096];
var message = host.newVar(System.Byte[4096]);

Obviously I am doing something wrong and clearscript works differentrly with arrays.

Can someone help me?. Thanks.

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images