unsafe fn get_latin1_string_bytes(string: &Heap<*mut JSString>) -> &[u8] ⓘExpand description
Return the Latin1 string bytes of the given JSString. As a garbage collection
can collect this string, it must be later bound to the lifetime of a provided NoGC
parameter. This function will never GC.
§Safety
The *mut JSString in rooted_traceable_box must be non-null. The resulting slice is
guaranteed to live as long as no garbage collection operation happens. Afterwards this
pointer can point to arbitrary memory. Callers should enforce this using NoGC. It is
essential for callers that this function not trigger a garbage collection.