Jump to content

Create an object at a given address: Difference between revisions

m
Line 583:
# second field 'bar'
is @bytes-written[1], 99, 'object second field';
 
# verify that changing the origin changes the object values
memset($base-p, 1, 100); # set every byte to 1
 
is $struct.foo, 256 + 1, 'short updated at origin';
is $struct.bar, 1, 'byte updated at origin';
 
# tidy up
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.