Extensões relacionadas:
Graças a Nikola Bozovic, podemos fornecer a você quase toda a estrutura de arquivos do formato JCD. Este formato de arquivo é salvo com o FlashGet versão 1.73 build 128.
Estrutura do formato JCD
LEGENDA
UBYTE - byte sem sinal (8 bits)
UINT - inteiro sem sinal (32 bits)
ArrayOf(TYPE) - array de elementos do TIPO
OleString - elemento de string empacotada 1 byte (8 bits) como N, e N bytes (caracteres) a seguir
enum - campo de bits (32 bits)
USHORT - short sem sinal (16 bits)
CTime - Data e Hora empacotadas como mfc CTime (1/1/1970)
Estrutura do arquivo
|
tamanho em bytes |
tipo de dado |
nome |
comentário |
|---|---|---|---|
|
1 |
UBYTE |
Signature |
0x48 |
|
4 |
UINT |
RecordsCount |
total de registros no db |
|
0+N |
ArrayOf(RCATEGORY or RFILE) |
Records |
array de registros |
Estrutura RCATEGORY
|
tamanho em bytes |
tipo de dado |
nome |
comentário |
|---|---|---|---|
|
4 |
UINT |
type |
define o tipo de registro (1, 5) |
|
4 |
UINT |
ID |
identificador único do registro |
|
4 |
UINT |
_u01 |
* desconhecido |
|
4 |
UINT |
_u02 |
* desconhecido |
|
4 |
UINT |
_u03 |
* desconhecido |
|
4 |
UINT |
_u04 |
* desconhecido |
|
4 |
UINT |
_u05 |
* desconhecido |
|
1+N |
OleString |
Name |
Nome da categoria |
|
1+N |
OleString |
Path |
Caminho da pasta da categoria |
Estrutura RFILE
|
tamanho em bytes |
tipo de dado |
nome |
comentário |
|---|---|---|---|
|
4 |
UINT |
type |
define o tipo de registro (2) |
|
4 |
UINT |
ID |
identificador único do registro |
|
4 |
UINT |
_u03 |
* desconhecido (6) |
|
4 |
UINT |
_u04 |
* desconhecido (2) |
|
4 |
UINT |
IDDirCurrent |
categoria atual do registro |
|
4 |
UINT |
_u06 |
* desconhecido (0) |
|
4 |
UINT |
_u07 |
* desconhecido (79) |
|
1+N |
OleString |
Url |
url de download do arquivo |
|
4 |
enum |
Flags |
flags do campo de bits [ver *1] |
|
1+N |
OleString |
ServerUsername |
nome de usuário para login no servidor |
|
1+N |
OleString |
ServerPassword |
senha para login no servidor |
|
4 |
UINT |
IDDirTarget |
categoria alvo para download completo |
|
1+N |
OleString |
Filename |
nome do arquivo para download |
|
4 |
UINT |
NumOfCnn |
Número de conexões |
|
1+N |
OleString |
Folder |
pasta para download |
|
1+N |
OleString |
Comment |
comentário |
|
4 |
UINT |
_u11 |
* desconhecido (1 / 65537) |
|
4 |
enum |
State |
1 - pausado, 2 - iniciado, 4 - completo, 8 - erro |
|
4 |
INT |
FileSize |
tamanho do arquivo do servidor, -1 para tamanho desconhecido |
|
1+N |
OleString? |
_s01 |
* desconhecido (0) talvez byte ? |
|
4 |
CTime |
FileDate |
data do arquivo obtida do servidor |
|
4 |
CTime |
CreateTime |
data de criação do registro do arquivo |
|
4 |
CTime |
CompleteTime |
data de conclusão do arquivo, última data e hora de escrita |
|
1+N |
OleString |
Referer |
url referer |
|
4 |
UINT |
TotalTime |
total de segundos que o download levou |
|
2 |
USHORT |
_us18 |
* desconhecido (0) |
|
4 |
UINT |
AltUrlCount |
contagem de urls alternativos |
|
0+N |
ArrayOf(ALTURL) |
AltUrls |
array de urls alternativos (pode ter tamanho zero) |
|
4 |
UINT |
JetCount |
contagem de jets de download |
|
0+N |
ArrayOf(JETITEM) |
JetItems |
array de itens jet (pode ter tamanho zero) |
|
4 |
UINT |
_u21 |
* desconhecido (0) |
Estrutura ALTURL
|
tamanho em bytes |
tipo de dado |
nome |
comentário |
|---|---|---|---|
|
1+N |
OleString |
Url |
url alternativa |
|
4 |
UINT |
_u01 |
* desconhecido (0) |
Estrutura JETITEM
|
tamanho em bytes |
tipo de dado |
nome |
comentário |
|---|---|---|---|
|
4 |
UINT |
start |
endereço inicial do download completo do jet |
|
4 |
UINT |
end |
endereço final do download completo do jet |
// Campo de bits [*1]
[Flags]
public enum JCDFileFlags : uint
{
bit1 = 1, /* download incompleto */
bit2 = 2, /* download incompleto */
LoginToServer = 4,
bit4 = 8,
bit5 = 0x10,
bit6 = 0x20,
bit7 = 0x40,
bit8 = 0x80,
bit9 = 0x100, /* download incompleto */
bit10 = 0x200, /* download incompleto */
bit11 = 0x400,
FtpDownloadSubDirs = 0x800,
CreateSubDirsLocally = 0x1000,
CreateCategory = 0x2000,
bit15 = 0x4000,
bit16 = 0x8000,
bit17 = 0x10000,
bit18 = 0x20000,
bit19 = 0x40000,
bit20 = 0x80000,
bit21 = 0x100000,
bit22 = 0x200000,
bit23 = 0x400000,
bit24 = 0x800000,
bit25 = 0x1000000,
bit26 = 0x2000000,
bit27 = 0x4000000,
bit28 = 0x8000000,
bit29 = 0x10000000,
bit30 = 0x20000000,
bit31 = 0x40000000,
bit32 = 0x80000000
}