Method _Stdio.Buffer()->add_hstring()
- Method
add_hstring
Bufferadd_hstring(string(8bit)data,int(0..)size_size)
Bufferadd_hstring(Stdio.Bufferdata,int(0..)size_size)
Bufferadd_hstring(System.Memorydata,int(0..)size_size)
Bufferadd_hstring(String.Bufferdata,int(0..)size_size)
Bufferadd_hstring(int(8bit)data,int(0..)size_size)
Bufferadd_hstring(arraydata,int(0..)size_size)
Bufferadd_hstring(int|string(8bit)|Stdio.Buffer|System.Memory|arraydata,int(0..)size_size,int(0..)offset)- Description
Adds length of data followed by
datato the buffer.This is identical to sprintf("%"+size_size+"H",(string)Stdio.Buffer(data)) but significantly faster.
size_sizeis the number of bytes used to represent the length of the data. It must be less than Int.NATIVE_MAX.offsetis added to the length of the data prior to writing out the length. Typical usage involves addingsize_sizeto account for the room used by the size.The supported
dataargument types areint(8bit)An eight bit character.
string(8bit)An eight bit string.
System.MemoryA chunk of memory. The whole memory area is added.
Stdio.BufferA chunk of memory. The whole memory area is added.
String.BufferA chunk of memory. The whole memory area is added.
arrayAdd all elements in the array individually. Each element may be any one of the types listed here.