-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Pharo-specific ZnRingBuffer code to Pharo-specific package and s…
…plit-off tests in a separate package
- Loading branch information
Showing
27 changed files
with
41 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
repository/Zinc-Seaside-Pharo.package/ZnPharoRingBuffer.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am the optimized implementation of a ring buffer on Pharo |
5 changes: 5 additions & 0 deletions
5
repository/Zinc-Seaside-Pharo.package/ZnPharoRingBuffer.class/instance/at..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
at: anInteger | ||
self checkBoundsFor: anInteger. | ||
|
||
^ buffer atWrap: anInteger + offset |
7 changes: 7 additions & 0 deletions
7
repository/Zinc-Seaside-Pharo.package/ZnPharoRingBuffer.class/instance/at.put..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
accessing | ||
at: anInteger put: anObject | ||
self checkBoundsFor: anInteger. | ||
|
||
buffer | ||
atWrap: anInteger + offset | ||
put: anObject |
11 changes: 11 additions & 0 deletions
11
repository/Zinc-Seaside-Pharo.package/ZnPharoRingBuffer.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "JohanBrichau 12/17/2023 23:19", | ||
"super" : "ZnRingBuffer", | ||
"category" : "Zinc-Seaside-Pharo", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "ZnPharoRingBuffer", | ||
"type" : "normal" | ||
} |
2 changes: 0 additions & 2 deletions
2
repository/Zinc-Seaside-Pharo.package/monticello.meta/categories.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
SystemOrganization addCategory: #'Zinc-Seaside-Pharo'! | ||
SystemOrganization addCategory: #'Zinc-Seaside-Pharo-Core'! | ||
SystemOrganization addCategory: #'Zinc-Seaside-Pharo-Tests'! |
4 changes: 2 additions & 2 deletions
4
repository/Zinc-Seaside.package/ZnRingBuffer.class/instance/at..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
accessing | ||
at: anInteger | ||
self checkBoundsFor: anInteger. | ||
^ buffer atWrap: anInteger + offset | ||
|
||
^ buffer atWrap: (anInteger + offset) \\ buffer size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
22 changes: 0 additions & 22 deletions
22
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testAt.st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testAtOutOfBounds.st
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testCopyFromTo.st
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testDo.st
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testEquals.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testIllegalInstantiation.st
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testIndexOf.st
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testIndexOfIfAbsent.st
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ory/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testIndexOfIfAbsentWhenAbsent.st
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testMoveStartTo.st
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testMoveStartToIdentity.st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...sitory/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testMoveStartToOutOfBounds.st
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
repository/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testOn.st
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...y/Zinc-Seaside.package/ZnRingBufferTest.class/instance/testReplaceFromToWithStartingAt.st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.