This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Storing C++ data in an instance field using CNI?


>>>>> "Paul" == Paul Gear <paul@gear.dyndns.org> writes:

Paul> I've searched the archives & Google without finding an answer to this
Paul> question: is it possible using CNI to store C++ data in the object as an
Paul> instance field?

Yes, declare a field of type gnu.gcj.RawData.  You can use this as a
pointer to arbitrary data.  This field will not be scanned by the GC.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]