mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 03:42:59 +08:00
Use external red/black tree package
This commit is contained in:
@ -14,7 +14,7 @@ type parsefunc func(*parseContext) parsefunc
|
||||
|
||||
type parseContext struct {
|
||||
Buf *bytes.Buffer
|
||||
Entries FrameDescriptionEntries
|
||||
Entries *FrameDescriptionEntries
|
||||
Common *CommonInformationEntry
|
||||
Frame *FrameDescriptionEntry
|
||||
Length uint32
|
||||
@ -23,10 +23,10 @@ type parseContext struct {
|
||||
// Parse takes in data (a byte slice) and returns a slice of
|
||||
// CommonInformationEntry structures. Each CommonInformationEntry
|
||||
// has a slice of FrameDescriptionEntry structures.
|
||||
func Parse(data []byte) FrameDescriptionEntries {
|
||||
func Parse(data []byte) *FrameDescriptionEntries {
|
||||
var (
|
||||
buf = bytes.NewBuffer(data)
|
||||
pctx = &parseContext{Buf: buf}
|
||||
pctx = &parseContext{Buf: buf, Entries: NewFrameIndex()}
|
||||
)
|
||||
|
||||
for fn := parseLength; buf.Len() != 0; {
|
||||
|
||||
Reference in New Issue
Block a user