This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug)] | |
pub struct Base64File { | |
filename: String, | |
content: String, | |
content_type: String, | |
size: usize, | |
} | |
impl Base64File { | |
pub fn from_bytes(filename: String, bytes: Vec<u8>, content_type: String, size: usize) -> Base64File { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void print(int* myarr, int len) { | |
for(int i = 0; i < len; i++) { | |
cout << *(myarr + i) << " "; | |
} | |
cout << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
println!("Hi world"); | |
} |