當前位置: 首頁>>代碼示例>>Golang>>正文


Golang Packet.ReadString方法代碼示例

本文整理匯總了Golang中misc/packet.Packet.ReadString方法的典型用法代碼示例。如果您正苦於以下問題:Golang Packet.ReadString方法的具體用法?Golang Packet.ReadString怎麽用?Golang Packet.ReadString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在misc/packet.Packet的用法示例。


在下文中一共展示了Packet.ReadString方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: PKT_user_archives_info

func PKT_user_archives_info(reader *packet.Packet) (tbl user_archives_info, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_archives, err = reader.ReadString()
	checkErr(err)
	return
}
開發者ID:hardPass,項目名稱:gonet,代碼行數:7,代碼來源:proto.go

示例2: PKT_talk

func PKT_talk(reader *packet.Packet) (tbl talk, err error) {
	tbl.F_user, err = reader.ReadString()
	checkErr(err)

	tbl.F_msg, err = reader.ReadString()
	checkErr(err)

	return
}
開發者ID:chenbk85,項目名稱:gonet,代碼行數:9,代碼來源:proto.go

示例3: PKT_error_info

func PKT_error_info(reader *packet.Packet) (tbl S_error_info, err error) {
	tbl.F_code, err = reader.ReadS32()
	checkErr(err)

	tbl.F_msg, err = reader.ReadString()
	checkErr(err)

	return
}
開發者ID:tarmylan,項目名稱:agent,代碼行數:9,代碼來源:proto.go

示例4: PKT_user_login_info

func PKT_user_login_info(reader *packet.Packet) (tbl user_login_info, err error) {
	tbl.F_mac_addr, err = reader.ReadString()
	checkErr(err)
	tbl.F_client_version, err = reader.ReadS32()
	checkErr(err)
	tbl.F_new_user, err = reader.ReadByte()
	checkErr(err)
	tbl.F_user_name, err = reader.ReadString()
	checkErr(err)
	return
}
開發者ID:hardPass,項目名稱:gonet,代碼行數:11,代碼來源:proto.go

示例5: PKT_SET_ADDS_REQ

func PKT_SET_ADDS_REQ(reader *packet.Packet) (tbl SET_ADDS_REQ, err error) {
	tbl.F_key, err = reader.ReadString()
	checkErr(err)

	tbl.F_value, err = reader.ReadS32()
	checkErr(err)

	tbl.F_lang, err = reader.ReadString()
	checkErr(err)

	return
}
開發者ID:WIZARD-CXY,項目名稱:golang-devops-stuff,代碼行數:12,代碼來源:proto.go

示例6: PKT_pve_list_item

func PKT_pve_list_item(reader *packet.Packet) (tbl pve_list_item, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	tbl.F_rank, err = reader.ReadS32()
	checkErr(err)
	tbl.F_state, err = reader.ReadS32()
	checkErr(err)
	tbl.F_protect_time, err = reader.ReadS32()
	checkErr(err)
	return
}
開發者ID:hardPass,項目名稱:gonet,代碼行數:13,代碼來源:proto.go

示例7: PKT_INFO

func PKT_INFO(reader *packet.Packet) (tbl INFO, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_state, err = reader.ReadS32()
	checkErr(err)
	tbl.F_score, err = reader.ReadS32()
	checkErr(err)
	tbl.F_clan, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	return
}
開發者ID:hardPass,項目名稱:gonet,代碼行數:13,代碼來源:proto.go

示例8: PKT_user_snapshot

func PKT_user_snapshot(reader *packet.Packet) (tbl user_snapshot, err error) {
	tbl.F_uid, err = reader.ReadS32()
	checkErr(err)

	tbl.F_name, err = reader.ReadString()
	checkErr(err)

	tbl.F_level, err = reader.ReadS32()
	checkErr(err)

	tbl.F_current_exp, err = reader.ReadS32()
	checkErr(err)

	return
}
開發者ID:pengswift,項目名稱:agent,代碼行數:15,代碼來源:proto.go

示例9: PKT_user_snapshot

func PKT_user_snapshot(reader *packet.Packet) (tbl user_snapshot, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	tbl.F_rank, err = reader.ReadS32()
	checkErr(err)
	tbl.F_archives, err = reader.ReadString()
	checkErr(err)
	tbl.F_protect_time, err = reader.ReadS32()
	checkErr(err)
	tbl.F_last_save_time, err = reader.ReadS32()
	checkErr(err)
	tbl.F_server_time, err = reader.ReadS32()
	checkErr(err)
	return
}
開發者ID:hardPass,項目名稱:gonet,代碼行數:17,代碼來源:proto.go

示例10: PKT_STRING

func PKT_STRING(reader *packet.Packet) (tbl STRING, err error) {
	tbl.F_v, err = reader.ReadString()
	checkErr(err)

	return
}
開發者ID:WIZARD-CXY,項目名稱:golang-devops-stuff,代碼行數:6,代碼來源:proto.go

示例11: PKT_user_login_info

func PKT_user_login_info(reader *packet.Packet) (tbl S_user_login_info, err error) {
	tbl.F_login_way, err = reader.ReadS32()
	checkErr(err)

	tbl.F_open_udid, err = reader.ReadString()
	checkErr(err)

	tbl.F_client_certificate, err = reader.ReadString()
	checkErr(err)

	tbl.F_client_version, err = reader.ReadS32()
	checkErr(err)

	tbl.F_user_lang, err = reader.ReadString()
	checkErr(err)

	tbl.F_app_id, err = reader.ReadString()
	checkErr(err)

	tbl.F_os_version, err = reader.ReadString()
	checkErr(err)

	tbl.F_device_name, err = reader.ReadString()
	checkErr(err)

	tbl.F_device_id, err = reader.ReadString()
	checkErr(err)

	tbl.F_device_id_type, err = reader.ReadS32()
	checkErr(err)

	tbl.F_login_ip, err = reader.ReadString()
	checkErr(err)

	return
}
開發者ID:tarmylan,項目名稱:agent,代碼行數:36,代碼來源:proto.go


注:本文中的misc/packet.Packet.ReadString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。