mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Add shared memory hit counter example to redbean
This commit is contained in:
parent
38e3ab57a6
commit
8aca94f951
6 changed files with 114 additions and 29 deletions
|
@ -29,7 +29,7 @@ assert(mem:read() == 'hello')
|
|||
mem:write('hi')
|
||||
assert(mem:read() == 'hi')
|
||||
assert(mem:read(0, 5) == 'hi\0lo')
|
||||
mem:write('H', 0, 1)
|
||||
mem:write(0, 'H', 1)
|
||||
assert(mem:read(0, 5) == 'Hi\0lo')
|
||||
assert(mem:read(1, 1) == 'i')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue