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: old end row of the changed text (offset from start row);
  • h: old end column of the changed text (if old end row = 0, offset from start column);
  • i: old end byte length of the changed text;
  • j: new end row of the changed text (offset from start row);
  • k: new end column of the changed text (if new end row = 0, offset from start column);
  • l: new end byte length of the changed text;