37 Commits

Author SHA1 Message Date
2d63de35c0 Add updateTypes to TypedByteArray and bump version to 0.3.6
Introduced an `updateTypes` method to dynamically update type definitions in `TypedByteArray`. Made `definition` private and initialized type/index maps in `createTypeAndIndexMap`. Updated project version for release.
2025-06-22 19:56:22 +02:00
9f152ca8da Fix size calculation to handle negative values and release version 0.3.4 2025-06-22 16:23:53 +02:00
1c23178839 Bump version to 0.3.4-SNAPSHOT for ongoing development. 2025-06-16 19:46:16 +02:00
ab6694ca6a Fix slice bounds check in SlicedByteArray and release version 0.3.3. 2025-06-16 19:46:04 +02:00
ad1fdf366b Bump version to 0.3.3-SNAPSHOT for ongoing development 2025-06-15 16:12:53 +02:00
e1002a5e0b Add slice functionality to SlicedByteArray with tests and edge case validation
Implemented a `slice` method in `SlicedByteArray` to allow creating sub-arrays with specified offset and length. Added validations to handle invalid inputs and bounds. Introduced `SliceTest` to cover standard, edge cases, and error scenarios. Bumped version to 0.3.2.
2025-06-15 16:10:52 +02:00
dd758b7af5 v. 0.3.0 2025-05-31 14:51:34 +02:00
65266aeb12 Add KDoc documentation for TypedByteArray
Enhanced `TypedByteArray` with detailed KDoc comments to clarify its purpose, structure, and usage. Included example usage and descriptions for key properties.
2025-05-31 14:11:17 +02:00
353c2c4f33 Add little-endian support for numeric types
Introduced `Little-Endian` functionality for `Short`, `Int`, `Long`, `Float`, and `Double` across `SlicedByteArray`, `MutableByteArrayHandler`, and `TypedByteArray`. Enhanced property delegates to handle little-endian byte order with the `littleEndian` parameter. Added `LittleEndianTest` to validate functionality. Bumped version to 0.3.0-SNAPSHOT.
2025-05-31 14:08:28 +02:00
4e7fa72a5e Bump version to 0.2.12-SNAPSHOT.
Updated the project version to 0.2.12-SNAPSHOT in build.gradle.kts. This prepares the codebase for ongoing development after the 0.2.11 release.
2025-05-03 11:12:08 +02:00
5f53b98062 Version 0.2.11 - update publish plugin 2025-05-03 11:10:00 +02:00
d671fbd64b Update Kotlin version, refine .gitignore, and optimize tests
Upgraded Kotlin Multiplatform plugin to version 2.1.20 for better compatibility and feature enhancements. Adjusted .gitignore to include `.idea/**` for broader IntelliJ configuration exclusion. Increased test iteration count in `TestCachedString` to improve benchmarking precision.
2025-04-09 20:45:39 +02:00
4a4de2c22c Update project JDK to Java 21
Changed the project JDK configuration from Java 17 to Java 21 in `.idea/misc.xml`. This ensures the project uses the latest JDK version for compatibility and feature updates.
2024-12-20 16:34:10 +01:00
e54a3c4338 Upgrade Kotlin and project version.
Updated Kotlin Multiplatform plugin to version 2.1.0 for compatibility and enhancements. Bumped project version to 0.2.10 to reflect this change.
2024-12-20 16:22:20 +01:00
97e7d91e9c Fix incorrect size computation in SlicedByteArray.
Corrected the `size` property to return the full `length` instead of subtracting the offset. Updated the project version to 0.2.9 to reflect this fix.
2024-12-17 20:45:00 +01:00
9be32b6a53 Fix size calculation and update build configuration
Corrected the `size` property in `SlicedByteArray` to account for offset. Bumped the version to 0.2.7 and added a custom Maven repository to the build script. Adjusted the `settings.gradle.kts` file to clean up formatting.
2024-12-17 20:40:07 +01:00
232d8fe92a Add constructor to SlicedByteArray and update version to 0.2.6
Introduce a new constructor in `SlicedByteArray` for initializing from a ByteArray. Updated `build.gradle.kts` to bump the version to 0.2.6, and made minor adjustments to `readme.md` to improve clarity and consistency.
2024-12-14 11:19:22 +01:00
69fa23a7a9 Fix MutableByteArrayHandler placement and update readme info
Relocated MutableByteArrayHandler implementation to correct position in ByteArrayHandler file for better organization. Updated readme to clarify behavior when updating variable-length types like strings for improved compression efficiency.
2024-12-13 22:00:00 +01:00
c64df75cd5 Add initial README for typed-byte-arrays library
Provide an overview of the library's purpose, usage, and functionality. This includes a Kotlin example of defining and using `TypedByteArray` and explanation of data types and properties. The README aims to help developers understand and adopt the library effectively.
2024-12-13 21:53:37 +01:00
cff48ef18c v. 0.2.5 2024-12-11 12:55:23 +01:00
c3414c9364 Build with 2.0.21, v. 0.2.4 2024-12-11 12:53:59 +01:00
7ab9385f20 Add release from server option 2024-12-07 16:24:46 +01:00
ae4e3c60ae Fix unit test assertions in TypedByteArrayWithByteArrayTest
Correct the expected values in assertions to match the updated data structure. This ensures the test accurately reflects the intended behavior of the `Data` object, maintaining consistency with any recent changes in the data format or handling.
2024-12-07 16:01:36 +01:00
db3aa2fbf6 Release version 0.2.1, bump version to 0.2.2-SNAPSHOT
Update the project version to 0.2.2-SNAPSHOT in build.gradle.kts to prepare for the next iteration of development. This is a minor version increment indicating ongoing work and new features in progress.
2024-12-01 16:08:47 +01:00
ea461409fb Remove ByteArrayPropertyWithLength and update handling
Removed the ByteArrayPropertyWithLength class and refactored related methods to simplify the handling of string and blob properties without maxLength constraints. This change improves code maintainability by eliminating redundant checks and ensures that property operations are more straightforward and error-free. Additionally, updated the Kotlin version and optimized the build configuration for better dependency management.
2024-12-01 13:55:06 +01:00
e60b6472ba Remove ByteArrayPropertyWithLength and update handling
Removed the ByteArrayPropertyWithLength class and refactored related methods to simplify the handling of string and blob properties without maxLength constraints. This change improves code maintainability by eliminating redundant checks and ensures that property operations are more straightforward and error-free. Additionally, updated the Kotlin version and optimized the build configuration for better dependency management.
2024-11-30 12:03:16 +01:00
1827704109 Blob length fix 2024-09-15 15:14:41 +02:00
da52a66de1 Cleanup old bytes after update 2024-09-14 11:50:04 +02:00
19f6aa9b15 Fix off-by-one error 2024-09-13 20:13:37 +02:00
35f9be0504 Set correct length on blob, fix off by one error 2024-09-06 16:43:09 +02:00
85c3dd8292 Slices and string cache 2024-09-06 10:25:15 +02:00
6567da1683 Add size of length to buffer, cleanup 2024-09-02 11:19:37 +02:00
09d88dbb3f Add ByteArray constructor 2024-09-01 21:14:41 +02:00
9d6944400c Publish package to gitea 2024-09-01 19:11:15 +02:00
38964c1499 Remove gradle.properties 2024-09-01 14:59:56 +02:00
7f7471bf86 Add all the types, some cleanup 2024-09-01 14:54:55 +02:00
657331dd31 Initial commit 2024-09-01 10:25:04 +02:00