string_to_buffer
string_to_buffer — creates a buffer object from a string.
string_to_buffer (string)
stringThe string to be converted to a buffer.
A buffer whose contents are those of the string.
This function creates a buffer object from a string. The buffer and string are mapped to different memory areas, so that alterations to one do not affect the other.
Gamma>a = "rhino";"rhino"Gamma>b = string_to_buffer(a);#{rhino}Gamma>a = "hippo";"hippo"Gamma>b;#{rhino}Gamma>