ByteArray
public class ByteArray : ByteArrayConvertible
extension ByteArray: CustomDebugStringConvertible
                The ByteArray class provides methods and properties the reading or writing with binary data.
- 
                  
                  
The ByteArray error domain codes.
See moreDeclaration
Swift
public enum Error : Swift.Error - 
                  
                  
Creates an empty ByteArray.
Declaration
Swift
public init() - 
                  
                  
Creates a ByteArray with data.
Declaration
Swift
public init(data: Data) - 
                  
                  
Specifies the length of buffer.
Declaration
Swift
public var length: Int { get set } - 
                  
                  
Specifies the position of buffer.
Declaration
Swift
public var position: Int - 
                  
                  
The bytesAvalibale or not.
Declaration
Swift
public var bytesAvailable: Int { get } - 
                  
                  
Undocumented
Declaration
Swift
public subscript(i: Int) -> UInt8 { get set } - 
                  
                  
Reading an UInt8 value.
Declaration
Swift
public func readUInt8() throws -> UInt8 - 
                  
                  
Writing an UInt8 value.
Declaration
Swift
@discardableResult public func writeUInt8(_ value: UInt8) -> Self - 
                  
                  
Readning an Int8 value.
Declaration
Swift
public func readInt8() throws -> Int8 - 
                  
                  
Writing an Int8 value.
Declaration
Swift
@discardableResult public func writeInt8(_ value: Int8) -> Self - 
                  
                  
Readning an UInt16 value.
Declaration
Swift
public func readUInt16() throws -> UInt16 - 
                  
                  
Writing an UInt16 value.
Declaration
Swift
@discardableResult public func writeUInt16(_ value: UInt16) -> Self - 
                  
                  
Reading an Int16 value.
Declaration
Swift
public func readInt16() throws -> Int16 - 
                  
                  
Reading an Int16 value.
Declaration
Swift
@discardableResult public func writeInt16(_ value: Int16) -> Self - 
                  
                  
Reading an UInt24 value.
Declaration
Swift
public func readUInt24() throws -> UInt32 - 
                  
                  
Writing an UInt24 value.
Declaration
Swift
@discardableResult public func writeUInt24(_ value: UInt32) -> Self - 
                  
                  
Reading an UInt32 value.
Declaration
Swift
public func readUInt32() throws -> UInt32 - 
                  
                  
Writing an UInt32 value.
Declaration
Swift
@discardableResult public func writeUInt32(_ value: UInt32) -> Self - 
                  
                  
Reading an Int32 value.
Declaration
Swift
public func readInt32() throws -> Int32 - 
                  
                  
Writing an Int32 value.
Declaration
Swift
@discardableResult public func writeInt32(_ value: Int32) -> Self - 
                  
                  
Writing an UInt64 value.
Declaration
Swift
@discardableResult public func writeUInt64(_ value: UInt64) -> Self - 
                  
                  
Reading an UInt64 value.
Declaration
Swift
public func readUInt64() throws -> UInt64 - 
                  
                  
Writing an Int64 value.
Declaration
Swift
public func writeInt64(_ value: Int64) -> Self - 
                  
                  
Reading an Int64 value.
Declaration
Swift
public func readInt64() throws -> Int64 - 
                  
                  
Reading a Double value.
Declaration
Swift
public func readDouble() throws -> Double - 
                  
                  
Writing a Double value.
Declaration
Swift
@discardableResult public func writeDouble(_ value: Double) -> Self - 
                  
                  
Reading a Float value.
Declaration
Swift
public func readFloat() throws -> Float - 
                  
                  
Writeing a Float value.
Declaration
Swift
@discardableResult public func writeFloat(_ value: Float) -> Self - 
                  
                  
Reading a string as UTF8 value.
Declaration
Swift
public func readUTF8() throws -> String - 
                  
                  
Writing a string as UTF8 value.
Declaration
Swift
@discardableResult public func writeUTF8(_ value: String) throws -> Self - 
                  
                  
Clear the buffer.
Declaration
Swift
@discardableResult public func clear() -> Self 
- 
                  
                  
Declaration
Swift
public var debugDescription: String { get }