Apple 310 manual Packedarray, Setcacheparams

Page 49

C H A P T E R 2

LaserWriter Select 310 Software

packedarray

Syntax

any0...anyn-1packedarray packedarray

Definition

This operator creates a packed array object of length n. The array object

 

contains the objects any0 through anyn-1as elements. The packed array

 

operator first removes the non-negative integer n from the operand stack,

 

creates a packed array containing those objects as elements, and finally

 

pushes the resulting packed array object onto the operand stack.

 

The resulting object has a type of packedarraytype, a literal attribute,

 

and read-only access. In all other respects, its behavior is identical to that

 

of an ordinary array object.

Error

rangecheck, stackunderflow, typecheck, VMerror

setcacheparams

Syntax

mark lower upper setcacheparams -

Definition This operator sets cache parameters as specified by the integer objects above the topmost mark on the stack, and then removes all operands and the mark object as if by cleartomark.

The number of cache parameters is variable. If more operands are supplied to setcacheparams than are needed, the topmost ones are used and the remainder ignored. If fewer are supplied than are needed, setcacheparams implicitly inserts default values between the mark and the first operand supplied.

The upper operand specifies the maximum number of bytes that may be occupied by the pixel array of a single cached character. The lower operand specifies the threshold at which characters are stored in compressed form rather than as full pixel arrays. If a character’s pixel array requires more bytes than specified by lower bytes to represent it, it is compressed in the cache and reconstituted from the compressed representation each time it is needed.

Setting lower to zero forces all characters to be compressed, permitting more characters to be stored in the cache, but increasing the amount of work required to print them. Setting lower to a greater value than upper disables compression.

Errors rangecheck, unmatchedmark

Setting Compatibility Operators

37

Image 49
Contents Apple LaserWriter Select 310 Printer Limited Warranty on Media and Replacement Contents Page Communication Channels Page Figures and Tables Page What This Note Contains About This NoteOther Reference Material Conventions Used in This NoteApda For More InformationPage LaserWriter Select Hardware1 LaserWriter Select 310 Hardware ROM Serial Port for RS-232C Devices Communication Ports2An 8-pin serial port connector Centronics Parallel ConnectorPstrobe Signal Status Lights ROM Capability Memory CapabilitiesBasic Operation Batch ModeDram Expansion Types Interactive ModePaper Handling 7Paper handling options Page LaserWriter Select 310 Software Adobe PostScript Programming Language Software OverviewPostScript Interpreter Types LaserWriter Select 310 DriverSelects the paper tray containing A4-size paper and sets Product Strings Software ParametersCommunication Device Parameters Compatibility OperatorsStatusdict Setting Compatibility Operators Device Checkpassword Setting System ParametersDefaulttimeouts IdlefontsProduct PrinternameProductA RamsizeSetpassword SetdefaulttimeoutsSetidlefonts Defaultmultipurposetraysize Setting Page Device ParametersDefaultpapertray SetprinternameManualfeed ManualfeedtimeoutMargins PagestackorderPapersize SetdefaultmultipurposepapertraysizePapertray Setdostartpage SetdefaultpapertraySetmargins Setpagetype SetpagestackorderSetpapertray Jobtimeout Setting User ParametersSetjobtimeout JobnameWaittimeout Setting Device ParametersSetsoftwareiomode Softwareiomode Setting Communication ParametersPacketbackchannel Setpacketbackchannel SccbatchSetsccbatch Setting Engine Device ParametersDarkness Setdarkness Setting Extensions to PostScript LevelCurrentcacheparams CurrentpackingSetcacheparams PackedarraySetpacking Printer Error ParameterPostScript Language Changes PrintererrorPacked Arrays Versus Ordinary Arrays Packed ArraysCreating Packed Arrays Immediately Evaluated Names Changes in Font Cache Operation Device Resolution ImagesEnd-of-Line Recognition New Operators TrueType FontsCommunication Channels Baud Rates Serial CommunicationFlow Control Parity SettingsDTR Flow Control XON/XOFF Flow Control SCC Operator EncodingSimple Communication Protocol Communication ProtocolsBinary Communication Protocol SOH CTL-A Parallel Interface Communicating with an IBM PCDTR Flow Control for PC Communication Serial InterfaceXON/XOFF Flow Control for PC Communication Communication DynamicsStatus Queries and Spontaneous Messages Errorerror OffendingCommand operator %%