< prev index next >

src/share/vm/classfile/classFileStream.hpp

Print this page
@  rev 12742 : imported patch alpinefixes-copyswapaligned
|


 111     u4 res = Bytes::get_Java_u4((address)_current);
 112     _current += 4;
 113     return res;
 114   }
 115 
 116   // Read u8 from stream
 117   u8 get_u8(TRAPS) const;
 118   u8 get_u8_fast() const {
 119     u8 res = Bytes::get_Java_u8((address)_current);
 120     _current += 8;
 121     return res;
 122   }
 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
 136   void skip_u1(int length, TRAPS) const;
 137   void skip_u1_fast(int length) const {
 138     _current += length;
 139   }
 140 
 141   void skip_u2(int length, TRAPS) const;
 142   void skip_u2_fast(int length) const {
 143     _current += 2 * length;
 144   }
 145 
 146   void skip_u4(int length, TRAPS) const;
 147   void skip_u4_fast(int length) const {
 148     _current += 4 * length;
 149   }
 150 
 151   // Tells whether eos is reached
 152   bool at_eos() const { return _current == _buffer_end; }
 153 
 154   uint64_t compute_fingerprint() const;


 111     u4 res = Bytes::get_Java_u4((address)_current);
 112     _current += 4;
 113     return res;
 114   }
 115 
 116   // Read u8 from stream
 117   u8 get_u8(TRAPS) const;
 118   u8 get_u8_fast() const {
 119     u8 res = Bytes::get_Java_u8((address)_current);
 120     _current += 8;
 121     return res;
 122   }
 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   // Skip length u1 or u2 elements from stream
 132   void skip_u1(int length, TRAPS) const;
 133   void skip_u1_fast(int length) const {
 134     _current += length;
 135   }
 136 
 137   void skip_u2(int length, TRAPS) const;
 138   void skip_u2_fast(int length) const {
 139     _current += 2 * length;
 140   }
 141 
 142   void skip_u4(int length, TRAPS) const;
 143   void skip_u4_fast(int length) const {
 144     _current += 4 * length;
 145   }
 146 
 147   // Tells whether eos is reached
 148   bool at_eos() const { return _current == _buffer_end; }
 149 
 150   uint64_t compute_fingerprint() const;
< prev index next >