Make member names camel case.

This commit is contained in:
scruzin 2019-01-07 13:33:07 +10:30
parent 189338d81b
commit 6975f5172e
2 changed files with 369 additions and 353 deletions

File diff suppressed because it is too large Load Diff

View File

@ -115,25 +115,25 @@ const (
// typedef struct RTMPChunk
// rtmp.h +105
type C_RTMPChunk struct {
c_headerSize int32
c_chunk []byte
c_header [RTMP_MAX_HEADER_SIZE]byte
headerSize int32
data []byte
header [RTMP_MAX_HEADER_SIZE]byte
}
// typedef struct RTMPPacket
// rtmp.h +113
type C_RTMPPacket struct {
m_headerType uint8
m_packetType uint8
m_hasAbsTimestamp bool
m_nChannel int32
m_nTimeStamp uint32
m_nInfoField2 int32
m_nBodySize uint32
m_nBytesRead uint32
m_chunk *C_RTMPChunk
m_header []byte
m_body []byte
headerType uint8
packetType uint8
hasAbsTimestamp bool
nChannel int32
nTimeStamp uint32
nInfoField2 int32
nBodySize uint32
nBytesRead uint32
chunk *C_RTMPChunk
header []byte
body []byte
}
// typedef struct RTMPSockBuf
@ -143,7 +143,7 @@ type C_RTMPPacket struct {
// RTMPPacket_IsReady(a)
// rtmp.h +142
func C_RTMPPacket_IsReady(p *C_RTMPPacket) bool {
return p.m_nBytesRead == p.m_nBodySize
return p.nBytesRead == p.nBodySize
}
// typedef struct RTMP_LNK
@ -179,34 +179,35 @@ type C_RTMP_METHOD struct {
// typedef struct RTMP
// rtmp.h +237
type C_RTMP struct {
m_inChunkSize int32
m_outChunkSize int32
m_nBWCheckCounter int32
m_nBytesIn int32
m_nBytesInSent int32
m_nBufferMS int32
m_stream_id int32
m_mediaChannel int32
m_pausing int32
m_nServerBW int32
m_nClientBW int32
m_nClientBW2 uint8
m_bPlaying bool
m_bSendEncoding bool
m_numInvokes int32
m_methodCalls []C_RTMP_METHOD
m_channelsAllocatedIn int32
m_channelsAllocatedOut int32
m_vecChannelsIn []*C_RTMPPacket
m_vecChannelsOut []*C_RTMPPacket
m_channelTimestamp []int32
m_fAudioCodecs float64
m_fVideoCodecs float64
m_fEncoding float64
m_fDuration float64
m_msgCounter int32
m_resplen int32
m_unackd int32
m_write C_RTMPPacket
inChunkSize int32
outChunkSize int32
nBWCheckCounter int32
nBytesIn int32
nBytesInSent int32
nBufferMS int32
streamID int32
mediaChannel int32
pausing int32
nServerBW int32
nClientBW int32
nClientBW2 uint8
bPlaying bool
bSendEncoding bool
numInvokes int32
methodCalls []C_RTMP_METHOD
channelsAllocatedIn int32
channelsAllocatedOut int32
vecChannelsIn []*C_RTMPPacket
vecChannelsOut []*C_RTMPPacket
channelTimestamp []int32
fAudioCodecs float64
fVideoCodecs float64
fEncoding float64
fDuration float64
msgCounter int32
resplen int32
unackd int32
write C_RTMPPacket
defered []byte
Link C_RTMP_LNK
}