Remove ByteArray>>at:put: and fix the fallback code in ByteArray>>#replaceFrom:to:with:startingAt: to match prim 105
=============== Diff against Collections-eem.760 ===============
Item was removed:
- ----- Method: ByteArray>>at:put: (in category 'accessing') -----
- at: index put: value
- <primitive: 61> "try primitiveAtPut, convert value to integer if that fails and try again"
- ^ self byteAt: index put: value asInteger
Item was changed:
----- Method: ByteArray>>replaceFrom:to:with:startingAt: (in category 'private') -----
replaceFrom: start to: stop with: replacement startingAt: repStart
"Primitive. This destructively replaces elements from start to stop in the receiver starting at index, repStart, in the collection, replacement. Answer the receiver. Range checks are performed in the primitive only. Optional. See Object documentation whatIsAPrimitive."
+ replacement isString
+ [super replaceFrom: start to: stop with: replacement startingAt: repStart]
+ [ "use String>>byteAt: to mimic prim 105"
+ | index repOff |
+ repOff := repStart - start.
+ index := start - 1.
+ [(index := index + 1) <= stop]
+ whileTrue: [self at: index put: (replacement byteAt: repOff + index)]]
- super replaceFrom: start to: stop with: replacement startingAt: repStart!