106
|
1 |
"{ Package: 'stx:goodies/xtreams/core' }"!
|
74
|
2 |
|
|
3 |
!Object methodsFor:'xtreams'!
|
|
4 |
|
|
5 |
streamingInsert: anInteger into: aWriteStream
|
|
6 |
anInteger timesRepeat: [self streamingInsertInto: aWriteStream]
|
|
7 |
! !
|
106
|
8 |
|
74
|
9 |
!Object methodsFor:'xtreams'!
|
36
|
10 |
|
74
|
11 |
streamingInsertInto: aWriteStream
|
|
12 |
aWriteStream insert: (aWriteStream contentsSpecies with: self)
|
|
13 |
! !
|
106
|
14 |
|
74
|
15 |
!Object methodsFor:'xtreams'!
|
|
16 |
|
|
17 |
streamingPrintOn: aWriteStream
|
|
18 |
aWriteStream write: self printString
|
|
19 |
! !
|
106
|
20 |
|
74
|
21 |
!Object methodsFor:'xtreams'!
|
|
22 |
|
|
23 |
streamingWrite: anInteger into: aWriteStream
|
|
24 |
anInteger timesRepeat: [self streamingWriteInto: aWriteStream].
|
|
25 |
^anInteger
|
|
26 |
! !
|
106
|
27 |
|
74
|
28 |
!Object methodsFor:'xtreams'!
|
|
29 |
|
|
30 |
streamingWriteInto: aWriteStream
|
|
31 |
aWriteStream put: self
|
|
32 |
! !
|
106
|
33 |
|
36
|
34 |
!SequenceableCollection methodsFor:'private'!
|
|
35 |
|
|
36 |
streamingInsert: anInteger into: aWriteStream
|
|
37 |
aWriteStream insert: anInteger from: self at: 1
|
|
38 |
! !
|
106
|
39 |
|
36
|
40 |
!SequenceableCollection methodsFor:'private'!
|
2
|
41 |
|
36
|
42 |
streamingInsertInto: aWriteStream
|
|
43 |
aWriteStream insert: self size from: self at: 1.
|
|
44 |
^self size
|
|
45 |
! !
|
106
|
46 |
|
36
|
47 |
!SequenceableCollection methodsFor:'private'!
|
|
48 |
|
|
49 |
streamingWrite: anInteger into: aWriteStream
|
|
50 |
^aWriteStream write: anInteger from: self at: 1
|
|
51 |
! !
|
106
|
52 |
|
36
|
53 |
!SequenceableCollection methodsFor:'private'!
|
|
54 |
|
|
55 |
streamingWriteInto: aWriteStream
|
|
56 |
aWriteStream write: self size from: self at: 1.
|
|
57 |
^self size
|
|
58 |
! !
|
106
|
59 |
|
|
60 |
!stx_goodies_xtreams_core class methodsFor:'documentation'!
|
|
61 |
|
109
|
62 |
extensionsVersion_HG
|
|
63 |
|
|
64 |
^ '$Changeset: <not expanded> $'
|
106
|
65 |
! ! |