Implementation of ZeroFormatter in Swift.
// TODO: Sample Code
// ...
Implemented | Swift type | C# type |
---|---|---|
o | Int8 |
SByte |
o | Int16 |
← |
o | Int32 |
← |
o | Int64 |
← |
o | UInt8 |
Byte |
o | UInt16 |
← and Char |
o | UInt32 |
← |
o | UInt64 |
← |
o | Float |
Single |
o | Double |
← |
o | Bool |
Boolean |
o | TimeSpan |
TimeSpan |
o | Date |
DateTime |
o | DateTimeOffset |
DateTimeOffset |
o | String |
← |
Implemented | Swift type | C# type |
---|---|---|
o | Int8? |
SByte? |
o | Int16? |
← |
o | Int32? |
← |
o | Int64? |
← |
o | UInt8? |
Byte? |
o | UInt16? |
← and Char? |
o | UInt32? |
← |
o | UInt64? |
← |
o | Float? |
Single? |
o | Double? |
← |
o | Bool? |
Boolean? |
o | TimeSpan? |
TimeSpan? |
o | Date? |
DateTime? |
o | DateTimeOffset? |
DateTimeOffset? |
o | String? |
← |
Implemented | Swift type | C# type | Note |
---|---|---|---|
o | Array<T>? |
Sequence<T> |
if length = -1, indicates null |
Implemented | Swift type | C# type | Note |
---|---|---|---|
o | FixedSizeList<T>? |
FixedSizeList |
if length = -1, indicates null |
o | VariableSizeList<T>? |
VariableSizeList |
if byteSize = -1, indicates null |
Implemented | Swift type | C# type | Note |
---|---|---|---|
o | ObjectSerializable? |
Object |
if byteSize = -1, indicates null |
o | StructSerializable |
Struct |
|
o | StructSerializable? |
Struct? |
Implemented | Swift type | C# type | Note |
---|---|---|---|
Union? |
Union |
if byteSize = -1, indicates null |