@BPOKE[handle,offset,size,value] : Write a value to a binary buffer.

 

handle - a binary handle from @BALLOC

 

offset - the byte offset in the buffer (decimal or hex)

 

size - the size of the value (in bytes):

 

1 - character

2 - short

4 - int

8 - int64

 

value - the value to poke

 

@BPOKE returns 0 on success.

 

Example:

 

set handle=%@balloc[128]

set value=%@bpoke[%handle,0,4,1234]