code:var MyDataBlock = Interop.Allocate(98); // String size is 48. Add NULL character: 1, makes 49. Unicode, so multiply by 2, makes 98. MyDataBlock.writeSTRING(0 /* offset */,myString.substr(0,48) /* header */ );