Skip to content

Commit ede6f27

Browse files
committed
refactor: rename PassThroughStream to DuplexStream (#33)
1 parent 31d22a3 commit ede6f27

17 files changed

+116
-116
lines changed

packages/react-native-fast-io/ios/HybridPassThroughStream.swift renamed to packages/react-native-fast-io/ios/HybridDuplexStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
class HybridPassThroughStream : HybridPassThroughStreamSpec {
10+
class HybridDuplexStream : HybridDuplexStreamSpec {
1111
var inputStream: (any HybridInputStreamSpec)
1212
var outputStream: (any HybridOutputStreamSpec)
1313

packages/react-native-fast-io/nitro.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"Network": {
1919
"swift": "HybridNetwork"
2020
},
21-
"PassThroughStream": {
22-
"swift": "HybridPassThroughStream"
21+
"DuplexStream": {
22+
"swift": "HybridDuplexStream"
2323
}
2424
}
2525
}

packages/react-native-fast-io/nitrogen/generated/android/FastIO+autolinking.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ target_sources(
3131
../nitrogen/generated/shared/c++/HybridNetworkSpec.cpp
3232
../nitrogen/generated/shared/c++/HybridInputStreamSpec.cpp
3333
../nitrogen/generated/shared/c++/HybridOutputStreamSpec.cpp
34-
../nitrogen/generated/shared/c++/HybridPassThroughStreamSpec.cpp
34+
../nitrogen/generated/shared/c++/HybridDuplexStreamSpec.cpp
3535
../nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp
3636
../nitrogen/generated/shared/c++/HybridWebSocketManagerSpec.cpp
3737
# Android-specific Nitrogen C++ sources

packages/react-native-fast-io/nitrogen/generated/ios/FastIO-Swift-Cxx-Bridge.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
// Include C++ implementation defined types
1111
#include "FastIO-Swift-Cxx-Umbrella.hpp"
12+
#include "HybridDuplexStreamSpecSwift.hpp"
1213
#include "HybridFileSystemSpecSwift.hpp"
1314
#include "HybridInputStreamSpecSwift.hpp"
1415
#include "HybridNetworkSpecSwift.hpp"
1516
#include "HybridOutputStreamSpecSwift.hpp"
16-
#include "HybridPassThroughStreamSpecSwift.hpp"
1717
#include "HybridWebSocketManagerSpecSwift.hpp"
1818
#include "HybridWebSocketSpecSwift.hpp"
1919
#include <NitroModules/HybridContext.hpp>
@@ -84,20 +84,20 @@ namespace margelo::nitro::fastio::bridge::swift {
8484
return FastIO::HybridOutputStreamSpecCxxUnsafe::toUnsafe(swiftPart);
8585
}
8686

87-
// pragma MARK: std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec>
88-
std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec> create_std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_(void* _Nonnull swiftUnsafePointer) {
89-
FastIO::HybridPassThroughStreamSpecCxx swiftPart = FastIO::HybridPassThroughStreamSpecCxxUnsafe::fromUnsafe(swiftUnsafePointer);
90-
return HybridContext::getOrCreate<margelo::nitro::fastio::HybridPassThroughStreamSpecSwift>(swiftPart);
87+
// pragma MARK: std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec>
88+
std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec> create_std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_(void* _Nonnull swiftUnsafePointer) {
89+
FastIO::HybridDuplexStreamSpecCxx swiftPart = FastIO::HybridDuplexStreamSpecCxxUnsafe::fromUnsafe(swiftUnsafePointer);
90+
return HybridContext::getOrCreate<margelo::nitro::fastio::HybridDuplexStreamSpecSwift>(swiftPart);
9191
}
92-
void* _Nonnull get_std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_(std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_ cppType) {
93-
std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::fastio::HybridPassThroughStreamSpecSwift>(cppType);
92+
void* _Nonnull get_std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_(std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_ cppType) {
93+
std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::fastio::HybridDuplexStreamSpecSwift>(cppType);
9494
#ifdef NITRO_DEBUG
9595
if (swiftWrapper == nullptr) [[unlikely]] {
96-
throw std::runtime_error("Class \"HybridPassThroughStreamSpec\" is not implemented in Swift!");
96+
throw std::runtime_error("Class \"HybridDuplexStreamSpec\" is not implemented in Swift!");
9797
}
9898
#endif
99-
FastIO::HybridPassThroughStreamSpecCxx swiftPart = swiftWrapper->getSwiftPart();
100-
return FastIO::HybridPassThroughStreamSpecCxxUnsafe::toUnsafe(swiftPart);
99+
FastIO::HybridDuplexStreamSpecCxx swiftPart = swiftWrapper->getSwiftPart();
100+
return FastIO::HybridDuplexStreamSpecCxxUnsafe::toUnsafe(swiftPart);
101101
}
102102

103103
// pragma MARK: std::shared_ptr<margelo::nitro::fastio::HybridWebSocketSpec>

packages/react-native-fast-io/nitrogen/generated/ios/FastIO-Swift-Cxx-Bridge.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
namespace NitroModules { class ArrayBufferHolder; }
1313
// Forward declaration of `ArrayBuffer` to properly resolve imports.
1414
namespace NitroModules { class ArrayBuffer; }
15+
// Forward declaration of `HybridDuplexStreamSpec` to properly resolve imports.
16+
namespace margelo::nitro::fastio { class HybridDuplexStreamSpec; }
1517
// Forward declaration of `HybridFileSystemSpec` to properly resolve imports.
1618
namespace margelo::nitro::fastio { class HybridFileSystemSpec; }
1719
// Forward declaration of `HybridInputStreamSpec` to properly resolve imports.
@@ -20,8 +22,6 @@ namespace margelo::nitro::fastio { class HybridInputStreamSpec; }
2022
namespace margelo::nitro::fastio { class HybridNetworkSpec; }
2123
// Forward declaration of `HybridOutputStreamSpec` to properly resolve imports.
2224
namespace margelo::nitro::fastio { class HybridOutputStreamSpec; }
23-
// Forward declaration of `HybridPassThroughStreamSpec` to properly resolve imports.
24-
namespace margelo::nitro::fastio { class HybridPassThroughStreamSpec; }
2525
// Forward declaration of `HybridWebSocketManagerSpec` to properly resolve imports.
2626
namespace margelo::nitro::fastio { class HybridWebSocketManagerSpec; }
2727
// Forward declaration of `HybridWebSocketSpec` to properly resolve imports.
@@ -30,6 +30,8 @@ namespace margelo::nitro::fastio { class HybridWebSocketSpec; }
3030
namespace margelo::nitro::fastio { struct NativeFilePickerOptions; }
3131

3232
// Forward declarations of Swift defined types
33+
// Forward declaration of `HybridDuplexStreamSpecCxx` to properly resolve imports.
34+
namespace FastIO { class HybridDuplexStreamSpecCxx; }
3335
// Forward declaration of `HybridFileSystemSpecCxx` to properly resolve imports.
3436
namespace FastIO { class HybridFileSystemSpecCxx; }
3537
// Forward declaration of `HybridInputStreamSpecCxx` to properly resolve imports.
@@ -38,19 +40,17 @@ namespace FastIO { class HybridInputStreamSpecCxx; }
3840
namespace FastIO { class HybridNetworkSpecCxx; }
3941
// Forward declaration of `HybridOutputStreamSpecCxx` to properly resolve imports.
4042
namespace FastIO { class HybridOutputStreamSpecCxx; }
41-
// Forward declaration of `HybridPassThroughStreamSpecCxx` to properly resolve imports.
42-
namespace FastIO { class HybridPassThroughStreamSpecCxx; }
4343
// Forward declaration of `HybridWebSocketManagerSpecCxx` to properly resolve imports.
4444
namespace FastIO { class HybridWebSocketManagerSpecCxx; }
4545
// Forward declaration of `HybridWebSocketSpecCxx` to properly resolve imports.
4646
namespace FastIO { class HybridWebSocketSpecCxx; }
4747

4848
// Include C++ defined types
49+
#include "HybridDuplexStreamSpec.hpp"
4950
#include "HybridFileSystemSpec.hpp"
5051
#include "HybridInputStreamSpec.hpp"
5152
#include "HybridNetworkSpec.hpp"
5253
#include "HybridOutputStreamSpec.hpp"
53-
#include "HybridPassThroughStreamSpec.hpp"
5454
#include "HybridWebSocketManagerSpec.hpp"
5555
#include "HybridWebSocketSpec.hpp"
5656
#include "NativeFilePickerOptions.hpp"
@@ -167,13 +167,13 @@ namespace margelo::nitro::fastio::bridge::swift {
167167
std::shared_ptr<margelo::nitro::fastio::HybridOutputStreamSpec> create_std__shared_ptr_margelo__nitro__fastio__HybridOutputStreamSpec_(void* _Nonnull swiftUnsafePointer);
168168
void* _Nonnull get_std__shared_ptr_margelo__nitro__fastio__HybridOutputStreamSpec_(std__shared_ptr_margelo__nitro__fastio__HybridOutputStreamSpec_ cppType);
169169

170-
// pragma MARK: std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec>
170+
// pragma MARK: std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec>
171171
/**
172-
* Specialized version of `std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec>`.
172+
* Specialized version of `std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec>`.
173173
*/
174-
using std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_ = std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec>;
175-
std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec> create_std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_(void* _Nonnull swiftUnsafePointer);
176-
void* _Nonnull get_std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_(std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_ cppType);
174+
using std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_ = std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec>;
175+
std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec> create_std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_(void* _Nonnull swiftUnsafePointer);
176+
void* _Nonnull get_std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_(std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_ cppType);
177177

178178
// pragma MARK: std::function<void(const std::string& /* selectedProtocol */)>
179179
/**

packages/react-native-fast-io/nitrogen/generated/ios/FastIO-Swift-Cxx-Umbrella.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// Forward declarations of C++ defined types
1111
// Forward declaration of `ArrayBuffer` to properly resolve imports.
1212
namespace NitroModules { class ArrayBuffer; }
13+
// Forward declaration of `HybridDuplexStreamSpec` to properly resolve imports.
14+
namespace margelo::nitro::fastio { class HybridDuplexStreamSpec; }
1315
// Forward declaration of `HybridFileSystemSpec` to properly resolve imports.
1416
namespace margelo::nitro::fastio { class HybridFileSystemSpec; }
1517
// Forward declaration of `HybridInputStreamSpec` to properly resolve imports.
@@ -18,8 +20,6 @@ namespace margelo::nitro::fastio { class HybridInputStreamSpec; }
1820
namespace margelo::nitro::fastio { class HybridNetworkSpec; }
1921
// Forward declaration of `HybridOutputStreamSpec` to properly resolve imports.
2022
namespace margelo::nitro::fastio { class HybridOutputStreamSpec; }
21-
// Forward declaration of `HybridPassThroughStreamSpec` to properly resolve imports.
22-
namespace margelo::nitro::fastio { class HybridPassThroughStreamSpec; }
2323
// Forward declaration of `HybridWebSocketManagerSpec` to properly resolve imports.
2424
namespace margelo::nitro::fastio { class HybridWebSocketManagerSpec; }
2525
// Forward declaration of `HybridWebSocketSpec` to properly resolve imports.
@@ -36,11 +36,11 @@ namespace margelo::nitro::fastio { struct RequestOptions; }
3636
namespace margelo::nitro::fastio { enum class WellKnownDirectory; }
3737

3838
// Include C++ defined types
39+
#include "HybridDuplexStreamSpec.hpp"
3940
#include "HybridFileSystemSpec.hpp"
4041
#include "HybridInputStreamSpec.hpp"
4142
#include "HybridNetworkSpec.hpp"
4243
#include "HybridOutputStreamSpec.hpp"
43-
#include "HybridPassThroughStreamSpec.hpp"
4444
#include "HybridWebSocketManagerSpec.hpp"
4545
#include "HybridWebSocketSpec.hpp"
4646
#include "Metadata.hpp"
@@ -66,6 +66,8 @@ namespace margelo::nitro::fastio { enum class WellKnownDirectory; }
6666
#include <NitroModules/PromiseHolder.hpp>
6767

6868
// Forward declarations of Swift defined types
69+
// Forward declaration of `HybridDuplexStreamSpecCxx` to properly resolve imports.
70+
namespace FastIO { class HybridDuplexStreamSpecCxx; }
6971
// Forward declaration of `HybridFileSystemSpecCxx` to properly resolve imports.
7072
namespace FastIO { class HybridFileSystemSpecCxx; }
7173
// Forward declaration of `HybridInputStreamSpecCxx` to properly resolve imports.
@@ -74,8 +76,6 @@ namespace FastIO { class HybridInputStreamSpecCxx; }
7476
namespace FastIO { class HybridNetworkSpecCxx; }
7577
// Forward declaration of `HybridOutputStreamSpecCxx` to properly resolve imports.
7678
namespace FastIO { class HybridOutputStreamSpecCxx; }
77-
// Forward declaration of `HybridPassThroughStreamSpecCxx` to properly resolve imports.
78-
namespace FastIO { class HybridPassThroughStreamSpecCxx; }
7979
// Forward declaration of `HybridWebSocketManagerSpecCxx` to properly resolve imports.
8080
namespace FastIO { class HybridWebSocketManagerSpecCxx; }
8181
// Forward declaration of `HybridWebSocketSpecCxx` to properly resolve imports.

packages/react-native-fast-io/nitrogen/generated/ios/FastIOAutolinking.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "HybridWebSocketManagerSpecSwift.hpp"
1414
#include "HybridFileSystemSpecSwift.hpp"
1515
#include "HybridNetworkSpecSwift.hpp"
16-
#include "HybridPassThroughStreamSpecSwift.hpp"
16+
#include "HybridDuplexStreamSpecSwift.hpp"
1717

1818
@interface FastIOAutolinking : NSObject
1919
@end
@@ -46,9 +46,9 @@ + (void) load {
4646
}
4747
);
4848
HybridObjectRegistry::registerHybridObjectConstructor(
49-
"PassThroughStream",
49+
"DuplexStream",
5050
[]() -> std::shared_ptr<HybridObject> {
51-
std::shared_ptr<margelo::nitro::fastio::HybridPassThroughStreamSpec> hybridObject = FastIO::FastIOAutolinking::createPassThroughStream();
51+
std::shared_ptr<margelo::nitro::fastio::HybridDuplexStreamSpec> hybridObject = FastIO::FastIOAutolinking::createDuplexStream();
5252
return hybridObject;
5353
}
5454
);

packages/react-native-fast-io/nitrogen/generated/ios/FastIOAutolinking.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ public final class FastIOAutolinking {
5757
}
5858

5959
/**
60-
* Creates an instance of a Swift class that implements `HybridPassThroughStreamSpec`,
61-
* and wraps it in a Swift class that can directly interop with C++ (`HybridPassThroughStreamSpecCxx`)
60+
* Creates an instance of a Swift class that implements `HybridDuplexStreamSpec`,
61+
* and wraps it in a Swift class that can directly interop with C++ (`HybridDuplexStreamSpecCxx`)
6262
*
6363
* This is generated by Nitrogen and will initialize the class specified
64-
* in the `"autolinking"` property of `nitro.json` (in this case, `HybridPassThroughStream`).
64+
* in the `"autolinking"` property of `nitro.json` (in this case, `HybridDuplexStream`).
6565
*/
66-
public static func createPassThroughStream() -> bridge.std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_ {
67-
let hybridObject = HybridPassThroughStream()
68-
return { () -> bridge.std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_ in
69-
let __cxxWrapped = HybridPassThroughStreamSpecCxx(hybridObject)
70-
let __pointer = HybridPassThroughStreamSpecCxxUnsafe.toUnsafe(__cxxWrapped)
71-
return bridge.create_std__shared_ptr_margelo__nitro__fastio__HybridPassThroughStreamSpec_(__pointer)
66+
public static func createDuplexStream() -> bridge.std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_ {
67+
let hybridObject = HybridDuplexStream()
68+
return { () -> bridge.std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_ in
69+
let __cxxWrapped = HybridDuplexStreamSpecCxx(hybridObject)
70+
let __pointer = HybridDuplexStreamSpecCxxUnsafe.toUnsafe(__cxxWrapped)
71+
return bridge.create_std__shared_ptr_margelo__nitro__fastio__HybridDuplexStreamSpec_(__pointer)
7272
}()
7373
}
7474
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
///
2-
/// HybridPassThroughStreamSpecSwift.cpp
2+
/// HybridDuplexStreamSpecSwift.cpp
33
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
44
/// https://github.com/mrousavy/nitro
55
/// Copyright © 2024 Marc Rousavy @ Margelo
66
///
77

8-
#include "HybridPassThroughStreamSpecSwift.hpp"
8+
#include "HybridDuplexStreamSpecSwift.hpp"
99

1010
namespace margelo::nitro::fastio {
1111
} // namespace margelo::nitro::fastio

packages/react-native-fast-io/nitrogen/generated/ios/c++/HybridPassThroughStreamSpecSwift.hpp renamed to packages/react-native-fast-io/nitrogen/generated/ios/c++/HybridDuplexStreamSpecSwift.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
///
2-
/// HybridPassThroughStreamSpecSwift.hpp
2+
/// HybridDuplexStreamSpecSwift.hpp
33
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
44
/// https://github.com/mrousavy/nitro
55
/// Copyright © 2024 Marc Rousavy @ Margelo
66
///
77

88
#pragma once
99

10-
#include "HybridPassThroughStreamSpec.hpp"
10+
#include "HybridDuplexStreamSpec.hpp"
1111

12-
// Forward declaration of `HybridPassThroughStreamSpecCxx` to properly resolve imports.
13-
namespace FastIO { class HybridPassThroughStreamSpecCxx; }
12+
// Forward declaration of `HybridDuplexStreamSpecCxx` to properly resolve imports.
13+
namespace FastIO { class HybridDuplexStreamSpecCxx; }
1414

1515
// Forward declaration of `HybridInputStreamSpec` to properly resolve imports.
1616
namespace margelo::nitro::fastio { class HybridInputStreamSpec; }
@@ -32,25 +32,25 @@ namespace margelo::nitro::fastio { class HybridOutputStreamSpec; }
3232
namespace margelo::nitro::fastio {
3333

3434
/**
35-
* The C++ part of HybridPassThroughStreamSpecCxx.swift.
35+
* The C++ part of HybridDuplexStreamSpecCxx.swift.
3636
*
37-
* HybridPassThroughStreamSpecSwift (C++) accesses HybridPassThroughStreamSpecCxx (Swift), and might
37+
* HybridDuplexStreamSpecSwift (C++) accesses HybridDuplexStreamSpecCxx (Swift), and might
3838
* contain some additional bridging code for C++ <> Swift interop.
3939
*
4040
* Since this obviously introduces an overhead, I hope at some point in
41-
* the future, HybridPassThroughStreamSpecCxx can directly inherit from the C++ class HybridPassThroughStreamSpec
41+
* the future, HybridDuplexStreamSpecCxx can directly inherit from the C++ class HybridDuplexStreamSpec
4242
* to simplify the whole structure and memory management.
4343
*/
44-
class HybridPassThroughStreamSpecSwift: public virtual HybridPassThroughStreamSpec {
44+
class HybridDuplexStreamSpecSwift: public virtual HybridDuplexStreamSpec {
4545
public:
4646
// Constructor from a Swift instance
47-
explicit HybridPassThroughStreamSpecSwift(const FastIO::HybridPassThroughStreamSpecCxx& swiftPart):
48-
HybridObject(HybridPassThroughStreamSpec::TAG),
47+
explicit HybridDuplexStreamSpecSwift(const FastIO::HybridDuplexStreamSpecCxx& swiftPart):
48+
HybridObject(HybridDuplexStreamSpec::TAG),
4949
_swiftPart(swiftPart) { }
5050

5151
public:
5252
// Get the Swift part
53-
inline FastIO::HybridPassThroughStreamSpecCxx getSwiftPart() noexcept { return _swiftPart; }
53+
inline FastIO::HybridDuplexStreamSpecCxx getSwiftPart() noexcept { return _swiftPart; }
5454

5555
public:
5656
// Get memory pressure
@@ -80,7 +80,7 @@ namespace margelo::nitro::fastio {
8080

8181

8282
private:
83-
FastIO::HybridPassThroughStreamSpecCxx _swiftPart;
83+
FastIO::HybridDuplexStreamSpecCxx _swiftPart;
8484
};
8585

8686
} // namespace margelo::nitro::fastio

packages/react-native-fast-io/nitrogen/generated/ios/swift/HybridPassThroughStreamSpec.swift renamed to packages/react-native-fast-io/nitrogen/generated/ios/swift/HybridDuplexStreamSpec.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// HybridPassThroughStreamSpec.swift
2+
/// HybridDuplexStreamSpec.swift
33
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
44
/// https://github.com/mrousavy/nitro
55
/// Copyright © 2024 Marc Rousavy @ Margelo
@@ -9,12 +9,12 @@ import Foundation
99
import NitroModules
1010

1111
/**
12-
* A Swift protocol representing the PassThroughStream HybridObject.
13-
* Implement this protocol to create Swift-based instances of PassThroughStream.
12+
* A Swift protocol representing the DuplexStream HybridObject.
13+
* Implement this protocol to create Swift-based instances of DuplexStream.
1414
*
1515
* When implementing this protocol, make sure to initialize `hybridContext` - example:
1616
* ```
17-
* public class HybridPassThroughStream : HybridPassThroughStreamSpec {
17+
* public class HybridDuplexStream : HybridDuplexStreamSpec {
1818
* // Initialize HybridContext
1919
* var hybridContext = margelo.nitro.HybridContext()
2020
*
@@ -27,7 +27,7 @@ import NitroModules
2727
* }
2828
* ```
2929
*/
30-
public protocol HybridPassThroughStreamSpec: AnyObject, HybridObjectSpec {
30+
public protocol HybridDuplexStreamSpec: AnyObject, HybridObjectSpec {
3131
// Properties
3232
var inputStream: (any HybridInputStreamSpec) { get set }
3333
var outputStream: (any HybridOutputStreamSpec) { get set }

0 commit comments

Comments
 (0)