Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
885406ab
Commit
885406ab
authored
Nov 02, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make BytesString.Unsafe internal (which it should have been all along)
parent
46f8a798
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ByteString.cs
csharp/src/Google.Protobuf/ByteString.cs
+3
-3
No files found.
csharp/src/Google.Protobuf/ByteString.cs
View file @
885406ab
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment