mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
base64: make encode and decode public
This commit is contained in:
committed by
Alexander Medvednikov
parent
c1400f725f
commit
142d3deab4
@@ -51,7 +51,7 @@ const (
|
|||||||
EncodingTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
EncodingTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
||||||
)
|
)
|
||||||
|
|
||||||
fn encode(data string) string {
|
pub fn encode(data string) string {
|
||||||
input_length := data.len
|
input_length := data.len
|
||||||
output_length := 4 * ((input_length + 2) / 3)
|
output_length := 4 * ((input_length + 2) / 3)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user