diff runtime/blueprint.c @ 163:9fab36cc706b

Add Raw Size method to blueprint to allow code to query the raw size of a type in bytes
author Mike Pavone <pavone@retrodev.com>
date Sun, 09 Jan 2011 23:03:30 -0500
parents 43cc42df26cc
children
line wrap: on
line diff
--- a/runtime/blueprint.c	Sun Jan 09 22:51:10 2011 -0500
+++ b/runtime/blueprint.c	Sun Jan 09 23:03:30 2011 -0500
@@ -26,4 +26,12 @@
 	return l->bp == r->bp;
 }
 
+int32_t _internal_blueprint_rawsize(object * bp)
+{
+	int32_t ret;
+	t_Blueprint * bprint = (t_Blueprint *)bp;
+	ret = bprint->bp->size;
+	release_ref(bp);
+	return ret;
+}