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; _stream = stream;
} }
public MemoryStreamReader(MemoryStreamReader reader)
{
if (reader == null)
throw new ArgumentNullException(nameof(reader));
_stream = reader._stream;
}
/// <summary> /// <summary>
/// Flag reading /// Flag reading
/// </summary> /// </summary>

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.