dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/include il_image.h,1.16,1.17


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_image.h,1.16,1.17
Date: Thu, 27 Mar 2003 17:01:38 -0500

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv21813/include

Modified Files:
        il_image.h 
Log Message:


Implement ILImageLoadFromMemory.


Index: il_image.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_image.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** il_image.h  28 Feb 2003 06:57:31 -0000      1.16
--- il_image.h  27 Mar 2003 22:01:35 -0000      1.17
***************
*** 56,59 ****
--- 56,60 ----
  #define       IL_LOADFLAG_INSECURE            16      /* Loaded from an 
insecure source */
  #define       IL_LOADFLAG_NO_MAP                      32      /* Don't use 
mmap to load image */
+ #define       IL_LOADFLAG_IN_PLACE            64      /* Memory load: execute 
in place */
  
  /*
***************
*** 192,195 ****
--- 193,208 ----
  int ILImageLoadFromFile(const char *filename, ILContext *context,
                                                ILImage **image, int flags, int 
printErrors);
+ 
+ /*
+  * Load an IL image from a memory buffer.  Returns a load error.
+  * IL_LOADFLAG_IN_PLACE can be used to execute directly from the
+  * supplied buffer, without making a copy first.  The caller is
+  * responsible for ensuring that the buffer persists for the
+  * lifetime of the image.  "filename" is optional: it is used
+  * for error reporting and to indicate the load directory.
+  */
+ int ILImageLoadFromMemory(const void *buffer, unsigned long bufLen,
+                                                 ILContext *context, ILImage 
**image,
+                                                 int flags, const char 
*filename);
  
  /*





reply via email to

[Prev in Thread] Current Thread [Next in Thread]