Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
alexandria
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Momchil Ivanov
alexandria
Commits
e12aed55
Commit
e12aed55
authored
Oct 14, 2010
by
Nikodemus Siivola
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of common-lisp.net:/project/alexandria/alexandria
parents
fb86c9b1
fc3312e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
io.lisp
io.lisp
+10
-8
No files found.
io.lisp
View file @
e12aed55
...
...
@@ -111,11 +111,13 @@ unless it's NIL, which means the system default."
"Reads data from INPUT and writes it to OUTPUT. Both INPUT and OUTPUT must
be streams, they will be passed to READ-SEQUENCE and WRITE-SEQUENCE and must have
compatible element-types."
(
loop
:for
bytes-read
=
(
read-sequence
buffer
input
)
:while
(
=
bytes-read
buffer-size
)
:do
(
write-sequence
buffer
output
)
:finally
(
progn
(
write-sequence
buffer
output
:end
bytes-read
)
(
when
finish-output
(
finish-output
output
)))))
(
let
((
bytes-written
0
))
(
loop
:for
bytes-read
=
(
read-sequence
buffer
input
)
:until
(
zerop
bytes-read
)
:do
(
progn
(
write-sequence
buffer
output
:end
bytes-read
)
(
incf
bytes-written
bytes-read
)))
(
when
finish-output
(
finish-output
output
))
bytes-written
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment