internal int Append(IntPtr data, int offset, int size) { if (_free == 0 || size == 0) { return(0); } int n = (_free >= size) ? size : _free; StringResourceManager.CopyResource(data, offset, _data, _size - _free, n); _free -= n; return(n); }
/* * Get bytes (used only for filtering) */ /*public*/ byte[] IHttpResponseElement.GetBytes() { if (_size > 0) { byte[] data = new byte[_size]; StringResourceManager.CopyResource(_data, _offset, data, 0, _size); return(data); } else { return(new byte[0]); } }