ObjectValue EvaluatePrimitive (byte[] rawBytes, int start, PrimitiveType t, ObjectValueFlags flags, ObjectPath path) { var evalResult = new EvaluationResult (DGdbTools.GetValueFunction (t.TypeToken) (rawBytes, start, DisplayAsHex)); return ObjectValue.CreatePrimitive (ValueSource, path, t.ToCode (), evalResult, flags); }
ObjectValue EvaluatePrimitive (string exp, PrimitiveType t, ObjectValueFlags flags, ObjectPath path) { byte[] rawBytes; if (!Memory.Read ("(void[])" + exp, DGdbTools.SizeOf (t.TypeToken), out rawBytes)) return ObjectValue.CreateError (ValueSource, path, t.ToCode (), "Can't read primitive '"+exp+"'", flags); return EvaluatePrimitive (rawBytes, 0, t, flags, path); }