crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
2aa11235
ROOT
/
go
/
store
/
types
/
struct.go
Search
History
656 lines
|
ISO-8859-1
|
14 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
EmptyStructType
_
EmptyStruct
(nbf *NomsBinFormat)
:
Struct
StructData
Struct
valueImpl
Format
()
:
*NomsBinFormat
Empty
()
:
bool
isPrimitive
()
:
bool
Value
(ctx context.Context)
:
(Value, error)
typeOf
()
:
(*Type, error)
decoderSkipToFields
()
:
(valueDecoder, uint64)
Len
()
:
int
Name
()
:
string
IterFields
(cb func(name string, value Value) error)
:
error
iterParts
(ctx context.Context, cbs structPartCallbacks)
:
error
MaybeGet
(n string)
:
(v Value, found bool, err error)
Set
(n string, v Value)
:
(Struct, error)
splitFieldsAt
(name string)
:
(prolog, head, tail []byte, count uint64, found bool, err error)
Delete
(n string)
:
(Struct, error)
Diff
(ctx context.Context, last Struct, changes chan<- ValueChanged)
:
error
readFrom
(nbf *NomsBinFormat, b *binaryNomsReader)
:
(Value, error)
skip
(nbf *NomsBinFormat, b *binaryNomsReader)
String
()
:
string
HumanReadableString
()
:
string
readStruct
(nbf *NomsBinFormat, dec *valueDecoder)
:
(Struct, error)
skipStruct
(nbf *NomsBinFormat, dec *valueDecoder)
:
error
isStructSameTypeForSure
(nbf *NomsBinFormat, dec *valueDecoder, t *Type)
:
(bool, error)
walkStruct
(nbf *NomsBinFormat, r *refWalker, cb RefCallback)
:
error
newStruct
(nbf *NomsBinFormat, name string, fieldNames []string, values []Value)
:
(Struct, error)
NewStruct
(nbf *NomsBinFormat, name string, data StructData)
:
(Struct, error)
StructTemplate
name
:
string
fieldNames
:
[]string
NewStruct
(nbf *NomsBinFormat, values []Value)
:
(Struct, error)
MakeStructTemplate
(name string, fieldNames []string)
:
(t StructTemplate)
readStructTypeOfValue
(nbf *NomsBinFormat, dec *valueDecoder)
:
(*Type, error)
structPartCallbacks
name
(ctx context.Context, n string)
count
(c uint64)
fieldName
(n string)
fieldValue
(ctx context.Context, v Value)
:
error
end
()
escapeChar
headFieldNamePattern
tailFieldNamePattern
escapeRegex
fieldNameComponentRe
encodingFunc
escapeField
(input string, encode encodingFunc)
:
string
EscapeStructField
(input string)
:
string
IsValidStructFieldName
(name string)
:
bool
isAlpha
(c rune)
:
bool
isAlphaNumOrUnderscore
(c rune)
:
bool
verifyFields
(fs structTypeFields)
verifyName
(name, kind string)
verifyFieldName
(name string)
verifyStructName
(name string)
All occurrences
Please wait...
Page is in error, reload to recover