hotspot/src/share/vm/classfile/classFileStream.hpp
changeset 46554 aa1cfd918c4f
parent 46504 38048d4d20e7
equal deleted inserted replaced
45608:9927a9f16738 46554:aa1cfd918c4f
   119     u8 res = Bytes::get_Java_u8((address)_current);
   119     u8 res = Bytes::get_Java_u8((address)_current);
   120     _current += 8;
   120     _current += 8;
   121     return res;
   121     return res;
   122   }
   122   }
   123 
   123 
   124   // Get direct pointer into stream at current position.
       
   125   // Returns NULL if length elements are not remaining. The caller is
       
   126   // responsible for calling skip below if buffer contents is used.
       
   127   const u1* get_u1_buffer() const {
       
   128     return _current;
       
   129   }
       
   130 
       
   131   const u2* get_u2_buffer() const {
       
   132     return (const u2*) _current;
       
   133   }
       
   134 
       
   135   // Skip length u1 or u2 elements from stream
   124   // Skip length u1 or u2 elements from stream
   136   void skip_u1(int length, TRAPS) const;
   125   void skip_u1(int length, TRAPS) const;
   137   void skip_u1_fast(int length) const {
   126   void skip_u1_fast(int length) const {
   138     _current += length;
   127     _current += length;
   139   }
   128   }