equal
deleted
inserted
replaced
2685 |
2685 |
2686 "Created: / 27.7.1998 / 16:56:46 / cg" |
2686 "Created: / 27.7.1998 / 16:56:46 / cg" |
2687 "Modified: / 27.7.1998 / 16:58:38 / cg" |
2687 "Modified: / 27.7.1998 / 16:58:38 / cg" |
2688 ! |
2688 ! |
2689 |
2689 |
|
2690 replaceBytesWith:replacementCollection |
|
2691 "replace elements from another collection, which must be byte-array-like. |
|
2692 Replace stops at whichever collection is smaller. |
|
2693 |
|
2694 Notice: This operation modifies the receiver, NOT a copy; |
|
2695 therefore the change may affect all others referencing the receiver." |
|
2696 |
|
2697 ^ self |
|
2698 replaceBytesFrom:1 |
|
2699 to:(replacementCollection size min:self size) |
|
2700 with:replacementCollection |
|
2701 startingAt:1 |
|
2702 |
|
2703 " |
|
2704 (ByteArray new:10) replaceBytesWith:'hello' |
|
2705 (ByteArray new:10) replaceBytesWith:'hello world bla bla bla' |
|
2706 " |
|
2707 |
|
2708 "Created: / 09-01-2012 / 16:18:10 / cg" |
|
2709 ! |
|
2710 |
2690 replaceFrom:startIndex to:stopIndex with:aCollection startingAt:repStartIndex |
2711 replaceFrom:startIndex to:stopIndex with:aCollection startingAt:repStartIndex |
2691 "replace elements in the receiver between index start and stop, |
2712 "replace elements in the receiver between index start and stop, |
2692 with elements taken from replacementCollection starting at repStart. |
2713 with elements taken from replacementCollection starting at repStart. |
2693 Return the receiver. |
2714 Return the receiver. |
2694 |
2715 |
2909 ! ! |
2930 ! ! |
2910 |
2931 |
2911 !UninterpretedBytes class methodsFor:'documentation'! |
2932 !UninterpretedBytes class methodsFor:'documentation'! |
2912 |
2933 |
2913 version |
2934 version |
2914 ^ '$Header: /cvs/stx/stx/libbasic/UninterpretedBytes.st,v 1.80 2011-09-26 09:58:22 cg Exp $' |
2935 ^ '$Header: /cvs/stx/stx/libbasic/UninterpretedBytes.st,v 1.81 2012-01-09 15:19:32 cg Exp $' |
2915 ! |
2936 ! |
2916 |
2937 |
2917 version_CVS |
2938 version_CVS |
2918 ^ '$Header: /cvs/stx/stx/libbasic/UninterpretedBytes.st,v 1.80 2011-09-26 09:58:22 cg Exp $' |
2939 ^ '$Header: /cvs/stx/stx/libbasic/UninterpretedBytes.st,v 1.81 2012-01-09 15:19:32 cg Exp $' |
2919 ! ! |
2940 ! ! |