Commit 885406ab authored by Jon Skeet's avatar Jon Skeet

Make BytesString.Unsafe internal (which it should have been all along)

parent 46f8a798
...@@ -50,13 +50,13 @@ namespace Google.Protobuf ...@@ -50,13 +50,13 @@ namespace Google.Protobuf
/// <summary> /// <summary>
/// Unsafe operations that can cause IO Failure and/or other catestrophic side-effects. /// Unsafe operations that can cause IO Failure and/or other catestrophic side-effects.
/// </summary> /// </summary>
public static class Unsafe internal static class Unsafe
{ {
/// <summary> /// <summary>
/// Constructs a new ByteString from the given byte array. The array is /// Constructs a new ByteString from the given byte array. The array is
/// *not* copied, and must not be modified after this constructor is called. /// *not* copied, and must not be modified after this constructor is called.
/// </summary> /// </summary>
public static ByteString FromBytes(byte[] bytes) internal static ByteString FromBytes(byte[] bytes)
{ {
return new ByteString(bytes); return new ByteString(bytes);
} }
...@@ -65,7 +65,7 @@ namespace Google.Protobuf ...@@ -65,7 +65,7 @@ namespace Google.Protobuf
/// Provides direct, unrestricted access to the bytes contained in this instance. /// Provides direct, unrestricted access to the bytes contained in this instance.
/// You must not modify or resize the byte array returned by this method. /// You must not modify or resize the byte array returned by this method.
/// </summary> /// </summary>
public static byte[] GetBuffer(ByteString bytes) internal static byte[] GetBuffer(ByteString bytes)
{ {
return bytes.bytes; return bytes.bytes;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment