diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-11-02 04:49:34 -0800 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-11-02 04:49:34 -0800 |
commit | 59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c (patch) | |
tree | 82fa58f1b42d6ff2bebfd2721c3312138efeb8e1 | |
parent | 8eebad1082816e3fa189af07b74162c13e730a21 (diff) | |
parent | 885406abcf5e2f415584a7018bb3f28cad69bb94 (diff) | |
download | protobuf-59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c.tar.gz protobuf-59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c.tar.bz2 protobuf-59635c13d9e9ce21ee7ee4c1493c3d437fc9d87c.zip |
Merge pull request #929 from jskeet/unsafe-internal
Make BytesString.Unsafe internal (which it should have been all along)
-rw-r--r-- | csharp/src/Google.Protobuf/ByteString.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/csharp/src/Google.Protobuf/ByteString.cs b/csharp/src/Google.Protobuf/ByteString.cs index 3d55f02d..dd7f22d6 100644 --- a/csharp/src/Google.Protobuf/ByteString.cs +++ b/csharp/src/Google.Protobuf/ByteString.cs @@ -50,13 +50,13 @@ namespace Google.Protobuf /// <summary>
/// Unsafe operations that can cause IO Failure and/or other catestrophic side-effects.
/// </summary>
- public static class Unsafe
+ internal static class Unsafe
{
/// <summary>
/// Constructs a new ByteString from the given byte array. The array is
/// *not* copied, and must not be modified after this constructor is called.
/// </summary>
- public static ByteString FromBytes(byte[] bytes)
+ internal static ByteString FromBytes(byte[] bytes)
{
return new ByteString(bytes);
}
@@ -65,7 +65,7 @@ namespace Google.Protobuf /// Provides direct, unrestricted access to the bytes contained in this instance.
/// You must not modify or resize the byte array returned by this method.
/// </summary>
- public static byte[] GetBuffer(ByteString bytes)
+ internal static byte[] GetBuffer(ByteString bytes)
{
return bytes.bytes;
}
|