aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-04-02 00:46:26 -0400
committerGitHub <noreply@github.com>2017-04-02 00:46:26 -0400
commitc4a9dd3d262c880b8499e2f9b564d9ead99a7a22 (patch)
tree47077506324da6137d56e322299942ee6eeb9512 /Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs
parentb3640fbc9a0f7fd4a1def4e3c2f8860feb0f6922 (diff)
parent4a8960fc866143e7107a5bc41527db6c5581974f (diff)
Merge pull request #2562 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs')
-rw-r--r--Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs b/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs
new file mode 100644
index 000000000..dc3d6ccc3
--- /dev/null
+++ b/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ObjectInputStream.cs
@@ -0,0 +1,25 @@
+using System;
+using System.IO;
+
+namespace SharpCifs.Util.Sharpen
+{
+ internal class ObjectInputStream : InputStream
+ {
+ private BinaryReader _reader;
+
+ public ObjectInputStream (InputStream s)
+ {
+ _reader = new BinaryReader (s.GetWrappedStream ());
+ }
+
+ public int ReadInt ()
+ {
+ return _reader.ReadInt32 ();
+ }
+
+ public object ReadObject ()
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}