Static Methodswift-nio 2.81.0_NIOFileSystem
megabytes(_:)
Returns a ByteCount
with a given number of megabytes
static func megabytes(_ count: Int64) -> ByteCount
Parameters
- count
The number of megabytes
One megabyte is 1,000,000 bytes.
Returns a ByteCount
with a given number of megabytes
static func megabytes(_ count: Int64) -> ByteCount
The number of megabytes
One megabyte is 1,000,000 bytes.
import _NIOFileSystem
A file system library for Swift.
struct ByteCount
Represents the number of bytes.
@frozen struct Int64
A 64-bit signed integer value type.
static var unlimited: ByteCount { get }
A ByteCount
for an unlimited amount of bytes.
static var zero: ByteCount { get }
static func bytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of bytes
static func gibibytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of gibibytes
static func gigabytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of gigabytes
static func kibibytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of kibibytes
static func kilobytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of kilobytes
static func mebibytes(_ count: Int64) -> ByteCount
Returns a ByteCount
with a given number of mebibytes
var bytes: Int64
The number of bytes
static func + (lhs: ByteCount, rhs: ByteCount) -> ByteCount
static func - (lhs: ByteCount, rhs: ByteCount) -> ByteCount
static func < (lhs: ByteCount, rhs: ByteCount) -> Bool