File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
swift/Sources/FlatBuffers Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public struct ByteBuffer {
100
100
101
101
/// The size of the elements written to the buffer + their paddings
102
102
private var _writerSize : Int = 0
103
- /// Aliginment of the current memory being written to the buffer
103
+ /// Alignment of the current memory being written to the buffer
104
104
var alignment = 1
105
105
/// Current Index which is being used to write to the buffer, it is written from the end to the start of the buffer
106
106
var writerIndex : Int { _storage. capacity &- _writerSize }
@@ -474,7 +474,6 @@ public struct ByteBuffer {
474
474
/// - Parameters:
475
475
/// - index: index of the string in the buffer
476
476
/// - count: length of the string
477
- /// - type: Encoding of the string
478
477
@inline ( __always)
479
478
public func readString(
480
479
at index: Int ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public protocol NativeObject {}
23
23
24
24
extension NativeObject {
25
25
26
- /// Serialize is a helper function that serailizes the data from the Object API to a bytebuffer directly th
26
+ /// Serialize is a helper function that serializes the data from the Object API to a bytebuffer directly th
27
27
/// - Parameter type: Type of the Flatbuffer object
28
28
/// - Returns: returns the encoded sized ByteBuffer
29
29
public func serialize< T: ObjectAPIPacker > ( type: T . Type ) -> ByteBuffer
@@ -33,7 +33,7 @@ extension NativeObject {
33
33
return serialize ( builder: & builder, type: type. self)
34
34
}
35
35
36
- /// Serialize is a helper function that serailizes the data from the Object API to a bytebuffer directly.
36
+ /// Serialize is a helper function that serializes the data from the Object API to a bytebuffer directly.
37
37
///
38
38
/// - Parameters:
39
39
/// - builder: A FlatBufferBuilder
You can’t perform that action at this time.
0 commit comments