1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 96 unchanged lines hidden (view full) --- 105 106inline 107void DataBlock::print(ostream& out) const 108{ 109 int size = RubySystem::getBlockSizeBytes(); 110 out << "[ "; 111 for (int i = 0; i < size; i++) { 112 out << setw(2) << setfill('0') << hex << "0x" << (int)m_data[i] << " "; |
113 out << setfill(' '); |
114 } 115 out << dec << "]" << flush; 116} 117 118inline 119uint8 DataBlock::getByte(int whichByte) const 120{ 121 return m_data[whichByte]; --- 46 unchanged lines hidden --- |