diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-23 22:44:57 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-23 22:44:57 +0700 |
commit | 98b3ce6512812cd1d91c60ca0e69d69c32838d8e (patch) | |
tree | 8af69c097b389fe494e97401f7808590314a5b6b /crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs | |
parent | Add ValidateBufferArguments (diff) | |
download | BouncyCastle.NET-ed25519-98b3ce6512812cd1d91c60ca0e69d69c32838d8e.tar.xz |
Work on Stream classes
- consistent naming, ordering - CanRead/Seek/Write fixes - argument validation - some cases of blocking zero-byte Read calls
Diffstat (limited to 'crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs')
-rw-r--r-- | crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs b/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs index e0822aa8b..c08b30787 100644 --- a/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs +++ b/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs @@ -241,18 +241,14 @@ namespace Org.BouncyCastle.Cms _eiGen = eiGen; } - public override void WriteByte( - byte b) + public override void Write(byte[] buffer, int offset, int count) { - _out.WriteByte(b); + _out.Write(buffer, offset, count); } - public override void Write( - byte[] bytes, - int off, - int len) + public override void WriteByte(byte value) { - _out.Write(bytes, off, len); + _out.WriteByte(value); } #if PORTABLE @@ -281,7 +277,7 @@ namespace Org.BouncyCastle.Cms base.Dispose(disposing); } #else - public override void Close() + public override void Close() { Platform.Dispose(_out); |