Sha256: 4487c90690e180c58957ee432c6248aae5d34471c6d84efaffc72a1da0f9b482
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
module Fastdfs module Client module ProtoCommon TRACKER_BODY_LEN = 40 IPADDR = 16...31 PORT = 31...-1 SIZE_LEN = 9 HEAD_LEN = 10 EXTNAME_LEN = 6 GROUP_NAME_MAX_LEN = 16 def self.header_bytes(cmd, hex_long, erron=0) hex_bytes = Utils.number_to_Buffer(hex_long) header = hex_bytes.fill(0, hex_bytes.length...HEAD_LEN) header[8] = cmd header[9] = erron header end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastdfs-client-0.0.3 | lib/fastdfs-client/proto_common.rb |
fastdfs-client-0.0.2 | lib/fastdfs-client/proto_common.rb |