buffer tostring externs