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 {
100100
101101 /// The size of the elements written to the buffer + their paddings
102102 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
104104 var alignment = 1
105105 /// Current Index which is being used to write to the buffer, it is written from the end to the start of the buffer
106106 var writerIndex : Int { _storage. capacity &- _writerSize }
@@ -474,7 +474,6 @@ public struct ByteBuffer {
474474 /// - Parameters:
475475 /// - index: index of the string in the buffer
476476 /// - count: length of the string
477- /// - type: Encoding of the string
478477 @inline ( __always)
479478 public func readString(
480479 at index: Int ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public protocol NativeObject {}
2323
2424extension NativeObject {
2525
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
2727 /// - Parameter type: Type of the Flatbuffer object
2828 /// - Returns: returns the encoded sized ByteBuffer
2929 public func serialize< T: ObjectAPIPacker > ( type: T . Type ) -> ByteBuffer
@@ -33,7 +33,7 @@ extension NativeObject {
3333 return serialize ( builder: & builder, type: type. self)
3434 }
3535
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.
3737 ///
3838 /// - Parameters:
3939 /// - builder: A FlatBufferBuilder
You can’t perform that action at this time.
0 commit comments