tracer.go
func (t *BTTracer) Put(snapshot []byte) error {
	end := bytes.IndexByte(snapshot, 0)
	if end == -1 {
		end = len(snapshot)
	}
	path := strings.TrimSpace(string(snapshot[:end]))

	return t.putSnapshotFile(path)
}
func (t *BTTracer) Put(snapshot []byte) error {
	end := bytes.IndexByte(snapshot, 0)
	if end == -1 {
		end = len(snapshot)
	}
	path := strings.TrimSpace(string(snapshot[:end]))

	return t.putSnapshotFile(path)
}
func ( t * BTTracer ) Put ( snapshot [ ] byte ) error { end := bytes . IndexByte ( snapshot , 0 ) if end == - 1 { end = len ( snapshot ) } path := strings . TrimSpace ( string ( snapshot [ : end ] ) ) return t . putSnapshotFile ( path ) }
// See bcd.Tracer.Put().
See bcd . Tracer . Put () .