GNU Smalltalk Library Reference: ByteArray-built ins

Next: , Previous: , Up: ByteArray [Index]


1.14.3 ByteArray: built ins

asCData: aCType

Allocate memory with malloc for a copy of the receiver, and return it converted to a CObject with the given type

at: anIndex ifAbsent: aBlock

Answer the index-th indexed instance variable of the receiver

byteAt: index

Answer the index-th indexed instance variable of the receiver

byteAt: index put: value

Store the ‘value’ byte in the index-th indexed instance variable of the receiver

hash

Answer an hash value for the receiver

replaceFrom: start to: stop with: aByteArray startingAt: replaceStart

Replace the characters from start to stop with the bytes contained in aByteArray (which, actually, can be any variable byte class), starting at the replaceStart location of aByteArray

replaceFrom: start to: stop withString: aString startingAt: replaceStart

Replace the characters from start to stop with the ASCII codes contained in aString (which, actually, can be any variable byte class), starting at the replaceStart location of aString

AltStyle によって変換されたページ (->オリジナル) /