Skip to content

Commit

Permalink
Add std.base64 for encoding and decoding base64
Browse files Browse the repository at this point in the history
The type std.base64.Encoder is used for encoding a ByteArray into
another ByteArray, while std.base64.Decoder is used for decoding. Both
support the standard and URL safe alphabets.

Changelog: added
  • Loading branch information
yorickpeterse committed Jul 24, 2024
1 parent c0ec1a6 commit 2db7844
Show file tree
Hide file tree
Showing 3 changed files with 1,206 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/src/llvm/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,10 @@ impl<'shared, 'module, 'ctx> LowerModule<'shared, 'module, 'ctx> {
Shape::String,
builder.context.pointer_type().as_basic_type_enum(),
),
Some(Constant::Array(_)) => (
Shape::Ref,
builder.context.pointer_type().as_basic_type_enum(),
),
_ => (
Shape::Owned,
builder.context.pointer_type().as_basic_type_enum(),
Expand Down
Loading

0 comments on commit 2db7844

Please sign in to comment.