12345678910111213141516171819202122 |
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package gofix
- /*
- #include <libcfix.h>
- #include <string.h>
- */
- import "C"
- import (
- "unsafe"
- )
- //export GoOnMdMessage
- func GoOnMdMessage(tick *C.TickFull, ctx unsafe.Pointer) {
- app := (*App)(ctx)
- t := &FixTick{}
- size := unsafe.Sizeof(*t)
- C.memcpy(unsafe.Pointer(t), unsafe.Pointer(tick), C.size_t(size))
- app.onMdMessage(t)
- }
|