GnuSmalltalkUsersGuide:BaseChapter 094

From 흡혈양파의 번역工房
Jump to navigation Jump to search
LargeByteArray

LargeByteArray

네임스페이스 Smalltalk에 정의됨

슈퍼클래스: LargeArrayedCollection

범주: 컬렉션-순차가능


나는 일반 ByteArray와 비슷하지만 많은 항목이 0일 때 메모리를 절약하도록 특별히 설계되었다.


LargeByteArray: 오버라이드되다

costOfNewIndex

defaultElement로 설정되어 있고 압축 배열(compressed array)에 표시될 수 있는 연속 항목의 최대 수를 응답하라.

defaultElement

배열에서 가장 공통되길 바라는 값을 응답하라.

newCollection: size

주어진 크기의 ByteArray를 생성하라.


Notes