Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Nov 22, 2024
1 parent 6c89ebf commit 4bb0c00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/AwsCommonRuntimeKit/crt/CBOR.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import AwsCCommon
import Foundation

/// CBOR Types. These types don't map one-to-one to the CBOR RFC.
/// Numbers will be encoded using the "smallest possible" encoding.
public enum CBORType: Equatable {
/// UINT64 type for positive numbers.
case uint(_ value: UInt64)
Expand All @@ -19,7 +20,9 @@ public enum CBORType: Equatable {
case array(_ value: [CBORType])
/// Map type
case map(_ value: [String: CBORType])
/// Date type. It will be encoded as epoch-based date/time.
/// Date type. It will be encoded as epoch-based time.
/// There might be some precision loss if this is encoded as an integer and
/// later converted to a double in some cases.
case date(_ value: Date)
/// Bool type
case bool(_ value: Bool)
Expand Down

0 comments on commit 4bb0c00

Please sign in to comment.