Skip to content

Commit 2e42750

Browse files
authored
chore: move hover docs to separate markdown files (#78)
1 parent 76f84b3 commit 2e42750

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+473
-575
lines changed

src/workspace/docs/builtin/bool.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*bool* builtin type, A Boolean value: `true` or `false`.
2+
3+
---
4+
Encoded as a single byte: `0x00` or `0xff` (all non-zero bytes decode to `true`)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*bytes* builtin type, A blob of arbitrary bytes.
2+
3+
---
4+
Stores at most 4GB of binary data. Encoded as base64 in JSON.
5+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*default* builtin type, A magic option that specifies the field's default value.
2+
3+
---
4+
5+
Unlike every other option on a field, this does not have a corresponding field in
6+
`google.protobuf.FieldOptions`; it is implemented by compiler magic.
7+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*double* builtin type,
2+
3+
---
4+
A double-precision floating point number (IEEE-745.2008 binary64).
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*fixed32* builtin type, A 32-bit unsigned integer (4-byte encoding)
2+
3+
---
4+
Values of this type range between `0` and `4294967295`.
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*fixed64* builtin type, A 64-bit unsigned integer (8-byte encoding)
2+
3+
---
4+
Values of this type range between `0` and `18446744073709551615`.
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*float* builtin type
2+
3+
---
4+
A single-precision floating point number (IEEE-745.2008 binary32).
5+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*int32* builtin type, A 32-bit integer (varint encoding)
2+
3+
---
4+
Values of this type range between `-2147483648` and `2147483647`.
5+
Beware that negative values are encoded as five bytes on the wire!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*int64* builtin type, A 64-bit integer (varint encoding)
2+
3+
---
4+
Values of this type range between `-9223372036854775808` and `9223372036854775807`.
5+
Beware that negative values are encoded as ten bytes on the wire!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*sfixed32* builtin type, A 32-bit integer (4-byte encoding)
2+
3+
---
4+
Values of this type range between `-2147483648` and `2147483647`.
5+

0 commit comments

Comments
 (0)