Skip to content

Commit

Permalink
Added offset-based copy method to ExternalAddress to parallel *offset…
Browse files Browse the repository at this point in the history
…At* getters and setters
  • Loading branch information
lello-at-lifeware committed Oct 28, 2021
1 parent 6f901cd commit f8e74ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UnifiedFFI/ExternalAddress.extension.st
Expand Up @@ -87,6 +87,11 @@ ExternalAddress >> copyFrom: startIndex to: endIndex [
^ result
]

{ #category : #'*UnifiedFFI' }
ExternalAddress >> copyFromOffset: startZeroBasedOffset to: endZeroBasedOffset [
^ self copyFrom: startZeroBasedOffset + 1 to: endZeroBasedOffset + 1
]

{ #category : #'*UnifiedFFI' }
ExternalAddress >> doubleAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."
Expand Down

0 comments on commit f8e74ed

Please sign in to comment.