summaryrefslogtreecommitdiffhomepage
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/NeKit/Stream.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/kernel/NeKit/Stream.h b/src/kernel/NeKit/Stream.h
index d69df6d0..b24038c1 100644
--- a/src/kernel/NeKit/Stream.h
+++ b/src/kernel/NeKit/Stream.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
@@ -9,6 +9,7 @@
#include <NeKit/Ref.h>
namespace Kernel {
+
template <typename StreamTrait, typename Kind>
class Stream final {
public:
@@ -40,6 +41,13 @@ class Stream final {
Ref<StreamTrait> fStream;
Ref<Kind> fKind;
};
+
+template <class ST, class Kind>
+using UnbufferedStream = Stream<ST, Kind>;
+
+template <class BST, class BKind>
+using BufferedStream = Stream<BST, BKind>;
+
} // namespace Kernel
#endif