1 write to _dataBuf
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ByteViewer.cs (1)
613
_dataBuf
= bytes;
17 references to _dataBuf
System.Windows.Forms.Design (17)
System\ComponentModel\Design\ByteViewer.cs (17)
260
int length = offset + _columnCount >
_dataBuf
.Length ?
_dataBuf
.Length % _columnCount : _columnCount;
262
return
_dataBuf
.AsSpan(offset, length);
283
if (
_dataBuf
.Length is >= 0 and < 8)
288
switch (AnalyzeByteOrderMark(
_dataBuf
, 0))
322
if (
_dataBuf
.Length > 1024)
328
size =
_dataBuf
.Length / 2;
333
char c = (char)
_dataBuf
[i]; // OK we do not care for Unicode now
343
Encoding.Unicode.GetChars(
_dataBuf
.AsSpan(i, 2), new Span<char>(ref unicodeChar));
367
public virtual byte[] GetBytes() =>
_dataBuf
;
400
fixed (byte* pDataBuff =
_dataBuf
)
402
bufferSize = PInvoke.MultiByteToWideChar(PInvoke.CP_ACP, 0, (PCSTR)pDataBuff,
_dataBuf
.Length, null, 0);
423
_edit.Text = string.Create(
_dataBuf
.Length / sizeof(char) + 1,
_dataBuf
, static (text, dataBuf) =>
478
_linesCount = (
_dataBuf
.Length + _columnCount - 1) / _columnCount;
593
currentFile.Write(
_dataBuf
.AsSpan());
680
if (line < 0 || line >= _linesCount || line >
_dataBuf
.Length / _columnCount)