diff --git a/Sources/FastRTPSSwift/PayloadDecoderProxy.swift b/Sources/FastRTPSSwift/PayloadDecoderProxy.swift index 33a5edd..42d65e8 100644 --- a/Sources/FastRTPSSwift/PayloadDecoderProxy.swift +++ b/Sources/FastRTPSSwift/PayloadDecoderProxy.swift @@ -6,7 +6,7 @@ import Foundation import CDRCodable -public class PayloadDecoderProxy { +class PayloadDecoderProxy { typealias Block = (UInt64, Data) -> Void var block: Block @@ -14,7 +14,7 @@ public class PayloadDecoderProxy { self.block = block } - public func decode(sequence: UInt64, payloadSize: Int, payload: UnsafeMutableRawPointer) { + func decode(sequence: UInt64, payloadSize: Int, payload: UnsafeMutableRawPointer) { let data = Data(bytesNoCopy: payload, count: payloadSize, deallocator: .none) block(sequence, data) }