You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: standardize README and add verification tests
Standardized README following coenttb README standardization guide:
Structure:
- Added CI and Development Status badges
- Reorganized into standard sections (Overview, Features, Installation, Quick Start, Usage Examples, etc.)
- Improved technical clarity and removed redundant content
- Added Related Packages section
Content improvements:
- More concise hero description
- Technical, factual language throughout
- Better organized usage examples
- Concrete performance benchmarks
- Clear IEEE 754 conformance details
Verification:
- Created ReadmeVerificationTests.swift with 7 test cases
- All README code examples verified to compile and work correctly
- Test coverage for Quick Start, Basic Serialization, Endianness, Float Operations, Authoritative API, Array Extensions, and Special Values
All 181 tests pass (174 existing + 7 new README verification tests).
Swift implementation of IEEE 754-2019 binary floating-point standard for canonical serialization of Float and Double types.
4
7
5
8
## Overview
6
9
7
-
This package provides canonical binary serialization for Swift's `Float` and `Double` types following the IEEE 754 binary interchange formats (binary32 and binary64). The implementation is pure Swift with no Foundation dependencies, making it suitable for Swift Embedded and constrained environments.
10
+
This package provides IEEE 754 binary interchange format serialization for Swift's native floating-point types. The implementation follows IEEE 754-2019 specification for binary32 (Float) and binary64 (Double) formats, offering lossless conversion between floating-point values and byte arrays.
11
+
12
+
Pure Swift implementation with no Foundation dependencies, suitable for Swift Embedded and constrained environments.
8
13
9
14
## Features
10
15
11
-
- Binary32 (single precision) and Binary64 (double precision) serialization
16
+
- Binary32 (single precision) and binary64 (double precision) formats
12
17
- Little-endian and big-endian byte order support
13
-
- Zero-copy optimized deserialization
14
-
- Comprehensive edge case handling (NaN, infinity, subnormals, signed zero)
0 commit comments