Skip to content

Commit

Permalink
change method signatures and fix bug setting tag
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Aug 14, 2024
1 parent 146e90f commit a86077e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libsrc++/EvioReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace evio {


/** {@inheritDoc} */
void EvioReader::setBuffer(std::shared_ptr<ByteBuffer> & buf) {reader->setBuffer(buf);}
void EvioReader::setBuffer(std::shared_ptr<ByteBuffer> buf) {reader->setBuffer(buf);}

/** {@inheritDoc} */
/*synchronized*/ bool EvioReader::isClosed() {return reader->isClosed();}
Expand All @@ -134,10 +134,10 @@ namespace evio {
std::string EvioReader::getPath() {return reader->getPath();}

/** {@inheritDoc} */
std::shared_ptr<EventParser> & EvioReader::getParser() {return reader->getParser();}
std::shared_ptr<EventParser> EvioReader::getParser() {return reader->getParser();}

/** {@inheritDoc} */
void EvioReader::setParser(std::shared_ptr<EventParser> & evParser) {reader->setParser(evParser);}
void EvioReader::setParser(std::shared_ptr<EventParser> evParser) {reader->setParser(evParser);}

/** {@inheritDoc} */
std::string EvioReader::getDictionaryXML() {return reader->getDictionaryXML();}
Expand Down Expand Up @@ -219,7 +219,7 @@ namespace evio {

// Read and parse second header word
int word = Util::toInt(src + 4, order);
header->setTag((word >> 16) & 0xfff);
header->setTag(word >> 16);
int dt = (word >> 8) & 0xff;
header->setDataType(dt & 0x3f);
header->setPadding(dt >> 6);
Expand Down

0 comments on commit a86077e

Please sign in to comment.