home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
232_01
/
bytearra.st
< prev
next >
Wrap
Text File
|
1987-06-17
|
384b
|
22 lines
Class ByteArray :ArrayedCollection
[
new: size
^ <NewByteArray size>
|
at: index
^ <ByteArrayAt self index>
|
at: index put: value
<ByteArrayAtPut self index value>
|
printString | str |
str <- '#[ '.
(1 to: self size)
do: [:i | str <- str , (self at: i) printString , ' '].
^ str , ']'
|
size
^ <ByteArraySize self>
]