Simple feature for MemoryStreamReader and MemoryStreamWriter

pull/1/head
unknown 4 years ago
parent 9af918a9b6
commit c826592f29

@ -41,6 +41,13 @@ namespace ZeroLevel.Services.Serialization
_stream = stream;
}
public MemoryStreamReader(MemoryStreamReader reader)
{
if (reader == null)
throw new ArgumentNullException(nameof(reader));
_stream = reader._stream;
}
/// <summary>
/// Flag reading
/// </summary>

@ -35,6 +35,11 @@ namespace ZeroLevel.Services.Serialization
_stream = stream;
}
public MemoryStreamWriter(MemoryStreamWriter writer)
{
_stream = writer._stream;
}
/// <summary>
/// Record a boolean value (1 byte)
/// </summary>

@ -6,16 +6,16 @@
</Description>
<Authors>ogoun</Authors>
<Company>ogoun</Company>
<AssemblyVersion>3.3.5.0</AssemblyVersion>
<PackageReleaseNotes>Fix Bloom and HyperBloomBloom filters</PackageReleaseNotes>
<AssemblyVersion>3.3.5.1</AssemblyVersion>
<PackageReleaseNotes>Light Fix in MemoryStreamWriter, MemoryStreamReader</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/ogoun/Zero/wiki</PackageProjectUrl>
<Copyright>Copyright Ogoun 2020</Copyright>
<PackageLicenseUrl></PackageLicenseUrl>
<PackageIconUrl></PackageIconUrl>
<RepositoryUrl>https://github.com/ogoun/Zero</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Version>3.3.5.0</Version>
<FileVersion>3.3.5.0</FileVersion>
<Version>3.3.5.1</Version>
<FileVersion>3.3.5.1</FileVersion>
<Platforms>AnyCPU;x64;x86</Platforms>
<PackageIcon>zero.png</PackageIcon>
</PropertyGroup>

Loading…
Cancel
Save

Powered by TurnKey Linux.