Next: , Previous: , Up: built-in ports labels   [Contents][Index]


6.23.8.5 Textual port labels

Label Type: <textual-port>

Label–type for all the textual ports. Its parent is the type annotation:

(or <textual-input-only-port> <textual-output-only-port>
    <textual-input/output-port>)
Constructor on <textual-port>: <textual-port> type-constructor port

Validate port as instance of <textual-port> and return it.

Type predicate on <textual-port>: <boolean> type-predicate obj

The type predicate is built combining the parent types’ type predicates.

Equality predicate on <textual-port>: <boolean> equality-predicate this {port <textual-port>}

The equality predicate is eq?.

Type predicate on <textual-port>: <non-negative-fixnum> hash-function this

The hash function is port-hash.

Methods: predicates

Method on <textual-port>: <boolean> open? this
Method on <textual-port>: <boolean> closed? this

Return #t if this is, respectively, open or closed; otherwise return #f.

Methods: configuration

Method on <textual-port>: () set-non-blocking-mode this
Method on <textual-port>: () unset-non-blocking-mode this

Apply port-set-non-blocking-mode! or port-unset-non-blocking-mode! to the argument and return its return value.

Method on <textual-port>: <boolean> non-blocking-mode? this

Apply port-in-non-blocking-mode? to the argument and return its return value.

Methods: position

Method on <textual-port>: <boolean> has-position? this

Apply port-has-port-position? to the argument and return its return value.

Method on <textual-port>: <boolean> has-set-position? this

Apply port-has-set-port-position!? to the argument and return its return value.

Method on <textual-port>: <non-negative-exact-integer> position this
Method on <textual-port>: () position this {pos <non-negative-exact-integer>}

Apply port-position or set-port-position! to the arguments and return its return value.

Methods: inspection

Method on <textual-port>: <string> id this

Apply port-id! to the argument and return its return value.

Method on <textual-port>: (or <false> <file-descriptor>) fd this

Apply port-fd to the argument and return its return value.

Method on <textual-port>: <gensym> uid this

Apply port-uid to the argument and return its return value.

Method on <textual-port>: () dump-status this

Apply port-dump-status to the argument and return its return value.

Method on <textual-port>: (or <transcoder> <false>) transcoder this

Apply port-transcoder to the argument and return its return value.

Methods: properties

Method on <textual-port>: () putprop this {key <symbol>} value

Apply port-putprop to the arguments and return its return value.

Method on <textual-port>: <top> getprop this {key <symbol>}

Apply port-getprop to the arguments and return its return value.

Method on <textual-port>: () remprop this {key <symbol>}

Apply port-remprop to the arguments and return its return value.

Method on <textual-port>: (alist <symbol> <top>) property-list this

Apply port-property-list to the arguments and return its return value.

Methods: miscellaneous

Method on <textual-port>: () close this

Apply port-close to the argument.

Method on <textual-port>: <boolean> reset this

Apply reset-input-port! or reset-output-port! to the argument.


Next: , Previous: , Up: built-in ports labels   [Contents][Index]