mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
picohttpparser: make u64toa public (#18861)
This commit is contained in:
parent
fb11a16ab8
commit
4413808941
@ -19,8 +19,8 @@ const (
|
||||
|
||||
// u64toa converts `value` to an ascii string and stores it at `buf_start`
|
||||
// then it returns the length of the ascii string (branch lookup table implementation)
|
||||
[direct_array_access; inline]
|
||||
fn u64toa(buf_start &u8, value u64) !int {
|
||||
[direct_array_access; unsafe]
|
||||
pub fn u64toa(buf_start &u8, value u64) !int {
|
||||
mut buf := unsafe { buf_start }
|
||||
// set maximum length to 100MB
|
||||
if value >= 100_000_000 {
|
||||
|
Loading…
Reference in New Issue
Block a user