Function: position-bytes
position-bytes is a function defined in editfns.c.
Signature
(position-bytes POSITION)
Documentation
Return the byte position for character position POSITION.
If POSITION is out of range, the value is nil.
Probably introduced at or before Emacs version 20.4.
Source Code
// Defined in /usr/src/emacs/src/editfns.c
{
EMACS_INT pos = fix_position (position);
if (! (BEG <= pos && pos <= Z))
return Qnil;
return make_fixnum (CHAR_TO_BYTE (pos));
}