Skip to content

Commit

Permalink
Make PayloadDecoderProxy non-public
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaRU committed Jan 15, 2024
1 parent f21a2e6 commit 1e7d612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/FastRTPSSwift/PayloadDecoderProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import Foundation
import CDRCodable

public class PayloadDecoderProxy {
class PayloadDecoderProxy {
typealias Block = (UInt64, Data) -> Void
var block: Block

init(block: @escaping Block) {
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)
}
Expand Down

0 comments on commit 1e7d612

Please sign in to comment.