태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.


댓글 하나가 운영자에겐 커다란 힘이 됩니다!

Building a Variable-Length File

Use the isbuild function to create a C-ISAM file for variable-length records.
isbuild 함수는 가변길이 records를 위한 C-ISAM 파일의 생성에 사용한다.

To build a file for variable-length records
가변길이 records를 위한 파일을 형성한다.



1. Before you call isbuild, set isreclen to the minimum number of bytes in the variable-length record.
    This establishes the length of the fixed-length portion of the record.
    isbuild 를 호출하기 전에, 가변길이 record의 최소 바이트값을 isreclen에 설정한다.
    isreclen은 record의 고정된 부분의 길이를 지정하는 것이다.

    The total record length can range from 2 to 32,511 bytes; the fixed-length portion can range from 1 to 32,510 bytes.
    총 record 길이는 2 에서 32,511 바이트 범위내에서 지정할 수 있다. 고정길이 부분은 1 에서 32,510 바이트 범위내에서 지정 할 수 있다.

2. Call isbuild, specifying ISVARLEN as part of the mode parameter to indicate that the file contains variable-length records.
    isbuild를 호출할때, ISVARLEN는 가변길이 record를 포함하고 있음을 나타낸다.

3. Assign the second parameter the maximum length of the record, including the fixed- and variable-length parts. The smallest value you can use in ISRECLEN is 1.
    두번째 매개변수에는 가변/고정 길이 부분을 포함한 record의 최대길이를 할당한다. ISRECLEN에 지정 할 수 있는 최소값은 1이다.
    The smallest variable-length record that you can use is 2 bytes; 1 byte for the fixed-length portion, one for the variable-length portion.
    가변길이 record에서 최소값은 2 바이트이며, 고정길이에서는 1 바이트가 최소값이 된다.



For example, the following two statements build the C-ISAM file employee with a maximum record size of 1,284 bytes, a minimum record size of 84 bytes, and a variable-length portion of up to 1,200 bytes.
예를 들어, 아래의 두줄의 코드에서는 C-ISAM 파일을 생성하는 것으로 최대 record 크기는 1,284 바이트가 되고, 최소 record 크기(고정길이)는 84 바이트, 그리고 가변길이 부분은 1,200 바이트가 된다.

isreclen = 84;
fd = isbuild("employee:", 1284, &key, ISINOUT + ISEXCLLOCK + ISVARLEN);


The employee file also is read/write and is locked exclusively. See the complete description of “isbuild” on page 8-16.

위의 정보가 도움이 되셨나요? 그렇다면 댓글 하나만 남겨주세요.
댓글 하나가 운영자에겐 커다란 힘이 됩니다!

Write your message and submit
« PREV : 1 : ... 188 : 189 : 190 : 191 : 192 : 193 : 194 : 195 : 196 : ... 436 : NEXT »