flatbuffers/samples
mustiikhalil bd1b2d0baf
[Swift] Adds new API to reduce memory copying within swift (#8484)
* Adds new API to reduce memory copying within swift

Adds new storage container _InternalByteBuffer which
will be holding the data that will be created within the swift
lib, however reading data will be redirected to ByteBuffer, which
should be able to handle all types of data that swift provide without
the need to copy the data itself. This is due to holding a reference to
the data.

Replaces assumingMemoryBinding with bindMemory which is safer

Adds function that provides access to a UnsafeBufferPointer for
scalars and NativeStructs within swift

Updates docs

Suppress compilation warnings by replacing var with let

Using overflow operators within swift to improve performance

Adds tests for GRPC message creation from a retained _InternalByteBuffer
2025-03-18 07:48:39 +01:00
..
lua/MyGame/Sample
rust_generated Removes 'size' and 'alignment' as Rust keywords (#8139) 2024-11-12 05:13:02 +00:00
csharp_sample.sh
dart_sample.sh
go.mod
go_sample.sh
java_sample.sh
javascript_sample.sh
kotlin_sample.sh
monster.bfbs
monster.fbs
monster_generated.h FlatBuffers Version 25.2.10 2025-02-10 20:25:03 -08:00
monster_generated.lobster Update Lobster monster sample 2023-09-17 21:18:03 -07:00
monster_generated.swift [Swift] Adds new API to reduce memory copying within swift (#8484) 2025-03-18 07:48:39 +01:00
monsterdata.json
php_sample.sh
python_sample.sh
sample_bfbs.cpp
sample_binary.cpp
sample_binary.go
sample_binary.lobster
sample_binary.lua
sample_binary.py
sample_binary.rs
sample_binary.swift Sets Swift minimum version to 5.8 (#8228) 2024-05-29 13:07:54 -07:00
sample_flexbuffers.rs
sample_flexbuffers_serde.rs
sample_text.cpp
sample_text.lobster
SampleBinary.cs
SampleBinary.java
SampleBinary.kt
SampleBinary.php