Commit graph

4 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
47bd1f7ddc Refactor C API to use value semantics for stream objects
- Changed kiwi_builder_init_stream() to return kiwi_stream_object_t by value instead of pointer
- Eliminates memory management ambiguity and potential leaks
- Simpler and safer API following standard C callback patterns
- Updated CStreamAdapter to work with value semantics
- Added stddef.h include for C compatibility
- Updated documentation with corrected examples
- Backward incompatible but safer API design

Co-authored-by: bab2min <19266222+bab2min@users.noreply.github.com>
2025-09-13 01:51:16 +09:00
copilot-swe-agent[bot]
35ced5e7b8 Remove unused filename parameter from kiwi_builder_init_stream C API function
Co-authored-by: bab2min <19266222+bab2min@users.noreply.github.com>
2025-09-13 01:51:15 +09:00
copilot-swe-agent[bot]
ce8a3ac1ba Refactor C API to use generic stream object interface instead of chunked stream
- Replace kiwi_stream_provider_t and kiwi_chunked_stream_provider_t with kiwi_stream_object_t
- Add kiwi_stream_read_func, kiwi_stream_seek_func, kiwi_stream_close_func callbacks
- Implement CStreamAdapter class for proper C++ istream integration
- Remove kiwi_builder_init_chunked_stream function - unified API with kiwi_builder_init_stream
- Update function signature to accept stream_object_factory and filename parameters
- Update documentation in StreamProvider.md with new API usage examples
- Maintain backward compatibility through modern stream-like interface

Co-authored-by: bab2min <19266222+bab2min@users.noreply.github.com>
2025-09-13 01:51:15 +09:00
copilot-swe-agent[bot]
c854f073fa 파일 시스템 외에서도 모델을 읽어올 수 있도록 개선 (C++/C API/Java/WASM 지원)
Co-authored-by: bab2min <19266222+bab2min@users.noreply.github.com>
2025-09-13 01:51:13 +09:00