public byte this[int offset] {
get {
//
// access
//
if (offset<0 || offset>=Size) {
throw new IndexOutOfRangeException();
}
return m_Buffer[offset];
}
set {
if (offset<0 || offset>=Size) {
throw new IndexOutOfRangeException();
}
if (m_Buffer[offset] != value) {
m_changed = true;
}
m_Buffer[offset] = value;
}
}