mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
make string.str and array.data public
This commit is contained in:
parent
7c6526ec12
commit
a32d48e0e0
@ -3,8 +3,8 @@ module builtin
|
|||||||
struct array {
|
struct array {
|
||||||
// Using a void pointer allows to implement arrays without generics and without generating
|
// Using a void pointer allows to implement arrays without generics and without generating
|
||||||
// extra code for every type.
|
// extra code for every type.
|
||||||
data voidptr
|
|
||||||
pub:
|
pub:
|
||||||
|
data voidptr
|
||||||
len int
|
len int
|
||||||
cap int
|
cap int
|
||||||
element_size int
|
element_size int
|
||||||
|
@ -2,8 +2,8 @@ module builtin
|
|||||||
|
|
||||||
// V strings are not null-terminated.
|
// V strings are not null-terminated.
|
||||||
struct string {
|
struct string {
|
||||||
str byteptr
|
|
||||||
pub:
|
pub:
|
||||||
|
str byteptr
|
||||||
len int
|
len int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user