Ejemplo n.º 1
0
int Person::InitBuffer(FixedFieldBuffer &Buffer){
    int result;
    result = Buffer.AddField(10); //LastName
    result = result && Buffer.AddField(10); //FirstName
    result = result && Buffer.AddField(15); //Address
    result = result && Buffer.AddField(15); //City
    result = result && Buffer.AddField(2);  //State
    result = result && Buffer.AddField(9);  //ZipCode
    return result;
}
int Student::InitBuffer (FixedFieldBuffer &buffer)
{
	// FixedFieldBuffer를 위해 Field 추가해둔다.
	// 혹시 모르니 충분한 크기로 생성
	int result;
	result = buffer.AddField(1);
	result = result && buffer.AddField(16);
	result = result && buffer.AddField(16);
	result = result && buffer.AddField(32);
	result = result && buffer.AddField(16);
	result = result && buffer.AddField(16);
	return result;
}