OnBytesArgs

Type Alias OnBytesArgs 

Source
pub type OnBytesArgs = (String, Buffer, u32, usize, usize, usize, usize, usize, usize, usize, usize, usize);
Expand description

Arguments passed to the callback registered to on_bytes. The (a, b, c, d, e, f, g, h, i, j, k, l)

  • a: the string literal "bytes";
  • b: the Buffer that triggered the callback;
  • c: the value of the buffer-local b:changedtick variable;
  • d: start row of the changed text (0-indexed);
  • e: start column of the changed text;
  • f: byte offset of the changed text from the start of the buffer;
  • g: number of rows deleted;
  • h: number of columns deleted;
  • i: number of bytes deleted;
  • j: number of rows added;
  • k: number of columns added;
  • l: number of bytes added;