Sept. 3, 2012
5:31 p.m.
Hello 2012/9/3 Igor Stasenko <siguctua@gmail.com>
just imagine you need to write a code which reads raw integer(s) from either byte array(s) or external address.
so, you will need to write either:
bytarray nbUInt64AtOffset: 10 put: 20
or
bytearray nbUInt64At: 10 put: 20.
I like explicit objects for arguments. So your examples can be something like: bytearray nbAt: 10 asOffset put: 20 nbUInt64 bytearray nbAt: 10 asOffset put: 20 nbInt32 bytearray nbAt: 10 asOffset put: 20 nbFloat or bytearray nbAt: 1 asIndex put: 20 nbUInt64 For this classes like NbArrayOffset, NbArrayIndex and others should be introduced Best regards, Denis