File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -500,9 +500,11 @@ $fh.close;
500
500
501
501
Defined as:
502
502
503
- method read(IO::Handle:D: Int(Cool:D) $bytes --> Buf:D)
503
+ method read(IO::Handle:D: Int(Cool:D) $bytes = 65536 --> Buf:D)
504
504
505
505
Binary reading; reads and returns up to C < $bytes > bytes from the filehandle.
506
+ C < $bytes > defaults to an implementation-specific value (in Rakudo,
507
+ the value of C < $*DEFAULT-READ-ELEMS > , which by default is set to C < 65536 > ).
506
508
This method can be called even when the handle is not
507
509
L < in binary mode|/type/IO::Handle#method_encoding > .
508
510
@@ -518,10 +520,12 @@ L<in binary mode|/type/IO::Handle#method_encoding>.
518
520
519
521
Defined as:
520
522
521
- method readchars(IO::Handle:D: Int(Cool:D) $chars --> Str:D)
523
+ method readchars(IO::Handle:D: Int(Cool:D) $chars = 65536 --> Str:D)
522
524
523
525
Reading chars; reads and returns up to C < $chars > chars (graphemes) from the
524
- filehandle. Attempting to call this method when the handle is
526
+ filehandle. C < $chars > defaults to an implementation-specific value (in Rakudo,
527
+ the value of C < $*DEFAULT-READ-ELEMS > , which by default is set to C < 65536 > ).
528
+ Attempting to call this method when the handle is
525
529
L < in binary mode|/type/IO::Handle#method_encoding > will result in
526
530
C < X::IO::BinaryMode > exception being thrown.
527
531
You can’t perform that action at this time.
0 commit comments