Esempio n. 1
0
File: tag.py Progetto: adaptee/pyec
def unpack_ectag_tagcount(data, utf8_num=True ):

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 2
        value, _ = unpack_uint16( data )
        return value, data[length:]
Esempio n. 2
0
def unpack_ectag_tagcount(data, utf8_num=True):

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 2
        value, _ = unpack_uint16(data)
        return value, data[length:]
Esempio n. 3
0
File: tag.py Progetto: adaptee/pyec
def unpack_ectag_taglen(data, utf8_num=True ):
    value  = -1
    length = -1

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 4
        value, _ = unpack_uint32(data)
        return value, data[length:]
Esempio n. 4
0
def unpack_ectag_taglen(data, utf8_num=True):
    value = -1
    length = -1

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 4
        value, _ = unpack_uint32(data)
        return value, data[length:]
Esempio n. 5
0
File: tag.py Progetto: adaptee/pyec
def unpack_ectag_tagname(data, utf8_num=True):

    value  = -1
    length = -1

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 2
        #value, = unpack( '!H', data[:length] )
        value, _ = unpack_uint16( data )
        return value, data[length:]
Esempio n. 6
0
def unpack_ectag_tagname(data, utf8_num=True):

    value = -1
    length = -1

    if utf8_num:
        return unpack_utf8_num(data)
    else:
        length = 2
        #value, = unpack( '!H', data[:length] )
        value, _ = unpack_uint16(data)
        return value, data[length:]