Class RTS_Bytefile
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RTS_Directbytefile
,RTS_Inbytefile
,RTS_Outbytefile
System class Bytefile.
The class bytefile is the common prefix class for all byte-oriented files.
file class bytefile; begin short integer BYTESIZE; short integer procedure bytesize; bytesize := BYTESIZE; end bytefile;
Bytefiles read and write files as continuous streams of bytes. The variable BYTESIZE defines the range of the byte values transferred. Byte values are integers in the range (0:2**BYTESIZE-1). The BYTESIZE value of the file object is accessible through procedure "bytesize".
Note: "Bytesize" returns zero before first "open" of the bytefile.
Link to GitHub: Source File.
- Author:
- SIMULA Standards Group, Øystein Myhre Andersen
-
Nested Class Summary
Nested classes/interfaces inherited from class simula.runtime.RTS_File
RTS_File._CreateAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
The current _BYTESIZE value.protected final int
The constant _MAXBYTE value.Fields inherited from class simula.runtime.RTS_File
_APPEND, _CANREAD, _CANWRITE, _CHARSET, _CREATE, _DEFAULT_BYTESIZE, _OPEN, _PURGE, _SYNCHRONOUS, FILE_NAME
Fields inherited from class simula.runtime.RTS_ENVIRONMENT
_STARTTIME, CURRENTDECIMALMARK, CURRENTLOWTEN, EXCEPTION_HANDLER, maxint, maxlongreal, maxreal, minint, minlongreal, minreal, simulaReleaseID
Fields inherited from class simula.runtime.RTS_RTObject
_CORUT, _CTX, _CUR, _DL, _INPUT_LINELENGTH, _JTX, _OUTPUT_LINELENGTH, _SL, _STATE, _SYSIN, _SYSOUT, _USR, startTimeMs
-
Constructor Summary
ConstructorsConstructorDescriptionRTS_Bytefile
(RTS_RTObject staticLink, RTS_TXT FILENAME) Create a new _ByteFile. -
Method Summary
Methods inherited from class simula.runtime.RTS_File
doCreateAction, doPurgeAction, filename, isopen, setaccess, setCharset, TRACE_OPEN, trySelectFile
Methods inherited from class simula.runtime.RTS_BASICIO
terminate_program, toString
Methods inherited from class simula.runtime.RTS_ENVIRONMENT
_char, abs, abs, abs, addepsilon, addepsilon, arccos, arcsin, arctan, arctan2, argv, blanks, Char, clocktime, copy, cos, cosh, cotan, cputime, datetime, decimalmark, DEFEXCEPTION, digit, discrete, draw, edfix, edfix, edit, edit, edit, edit, edit, edit, edtime, edtime, entier, Erlang, error, exit, exp, hash, histd, histo, isochar, isorank, letter, linear, ln, loadChar, log10, lowcase, lowerbound, lowten, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, mod, negexp, normal, Poisson, printStaticChain, printThreadList, randint, rank, rem, sign, simulaid, sin, sinh, sqrt, storeChar, subepsilon, subepsilon, tan, tanh, uniform, upcase, upperbound, waitSomeTime
Methods inherited from class simula.runtime.RTS_RTObject
_GOTO, _JUMPTABLE, _SIM_LABEL, _TREAT_GOTO_CATCH_BLOCK, _VALUE, arrayValue, BBLK, booleanValue, call, call, charValue, CONC, detach, detach, detach, doubleValue, EBLK, edObjectAttributes, edObjectIdent, floatValue, intValue, isDetachUsed, isQPSystemBlock, objectTraceIdentifier, objectTraceIdentifier, objectValue, procValue, resume, resume, resume, swapCoroutines, sysin, sysout, TRACE_GOTO
-
Field Details
-
_BYTESIZE
protected int _BYTESIZEThe current _BYTESIZE value. -
_MAXBYTE
protected final int _MAXBYTEThe constant _MAXBYTE value.- See Also:
-
-
Constructor Details
-
RTS_Bytefile
Create a new _ByteFile.- Parameters:
staticLink
- static linkFILENAME
- the file name.
-
-
Method Details
-
bytesize
public int bytesize()Returns the _BYTESIZE value.- Returns:
- the _BYTESIZE value.
-
_STM
Description copied from class:RTS_RTObject
Method representing the Statements in this Block
This method is virtual and must be redefined in blocks.
-