pub type Length = Length;
👎Deprecated: Moved to aws_smithy_types::byte_stream::Length.
Expand description

The length (in bytes) to read. Determines whether or not a short read counts as an error.

Aliased Type§

enum Length {
    Exact(u64),
    UpTo(u64),
}

Variants§

§

Exact(u64)

Read this number of bytes exactly. Returns an error if the file is smaller than expected.

§

UpTo(u64)

Read up to this number of bytes. May read less than the specified amount if the file is smaller than expected.