src/hotspot/share/jfr/writers/jfrPosition.inline.hpp
changeset 53897 0abec72a3ac2
parent 53244 9807daeb47c4
equal deleted inserted replaced
53896:b47fd614c75e 53897:0abec72a3ac2
    78 inline size_t Position<AP>::available_size() const {
    78 inline size_t Position<AP>::available_size() const {
    79   return _end_pos - _current_pos;
    79   return _end_pos - _current_pos;
    80 }
    80 }
    81 
    81 
    82 template <typename AP>
    82 template <typename AP>
    83 inline intptr_t Position<AP>::used_offset() const {
    83 inline int64_t Position<AP>::used_offset() const {
    84   return _current_pos - _start_pos;
    84   return _current_pos - _start_pos;
    85 }
    85 }
    86 
    86 
    87 template <typename AP>
    87 template <typename AP>
    88 inline intptr_t Position<AP>::current_offset() const {
    88 inline int64_t Position<AP>::current_offset() const {
    89   return this->used_offset();
    89   return this->used_offset();
    90 }
    90 }
    91 
    91 
    92 template <typename AP>
    92 template <typename AP>
    93 inline size_t Position<AP>::used_size() const {
    93 inline size_t Position<AP>::used_size() const {