We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13fe068 + d1fd3d7 commit beb2a56Copy full SHA for beb2a56
snappy.zig
@@ -412,7 +412,7 @@ fn encodeBlock(dst: []u8, src: []u8) usize {
412
}
413
414
/// Encode returns the encoded form of the source input. The returned slice must be freed.
415
-pub fn encode(allocator: Allocator, src: []u8) ![]u8 {
+pub fn encode(allocator: Allocator, src: []const u8) ![]u8 {
416
var mutSrc = src;
417
const encodedLen = maxEncodedLen(mutSrc.len);
418
if (encodedLen < 0) {
0 commit comments