Class OStream_cxx_0x344ccaac

    • Field Detail

      • SIZE

        public static final int SIZE
      • HASH_SHIFT

        public static final int HASH_SHIFT
    • Constructor Detail

      • OStream_cxx_0x344ccaac

        public OStream_cxx_0x344ccaac​(long address)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • put

        public void put​(byte c)
        Description copied from interface: OStream
        For `put(byte c)` we will generate a native method:
        
         public class OStreamImpl{
             public void put(byte c) { nativePut(getAddress(), c); }
             native void nativePut(long address, byte c);
         }
         
        In the generated JNI cxx file:
        
         void Java_xxx_nativePut(JNIEnv*, jclass, jlong address, jbytec)
         {
              std::ostream* obj = reinterpret_cast<std::ostream*>(address);
              obj->put(c);
         }
         
        Specified by:
        put in interface OStream
        Parameters:
        c - byte
      • nativePut

        public static void nativePut​(long ptr,
                                     byte c0)