public long[] Domain_GetAssemblies (long id) {
var res = SendReceive (CommandSet.APPDOMAIN, (int)CmdAppDomain.GET_ASSEMBLIES, new PacketWriter ().WriteId (id));
int count = res.ReadInt ();
long[] assemblies = new long [count];
for (int i = 0; i < count; ++i)
assemblies [i] = res.ReadId ();
return assemblies;
}