DataBlock.hh (6369:82ac95f4d9f0) DataBlock.hh (6631:5437a0eeb822)
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] << " ";
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(' ');
113 }
114 out << dec << "]" << flush;
115}
116
117inline
118uint8 DataBlock::getByte(int whichByte) const
119{
120 return m_data[whichByte];

--- 46 unchanged lines hidden ---
114 }
115 out << dec << "]" << flush;
116}
117
118inline
119uint8 DataBlock::getByte(int whichByte) const
120{
121 return m_data[whichByte];

--- 46 unchanged lines hidden ---