Skip to content

get-{bytevector,string}-n! have end instead of count as argument #3

@weinholt

Description

@weinholt

get-bytevector-n! and get-string-n! both have end instead of count as argument, which is also reflected in that they do the wrong thing.

The signatures in ports.rkt: (get-bytevector-n! p bytes start end), (get-string-n! p str start end)

The signatures in R6RS: (get-bytevector-n! binary-input-port bytevector start count), (get-string-n! textual-input-port string start count)

You may find a test case for get-bytevector-n! in okuoku/yuni#95

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions