MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isBpbSegmented

Function isBpbSegmented

src/common/utils.cpp:1870–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1868}
1869
1870bool isBpbSegmented(unsigned parLength, const unsigned char* par)
1871{
1872 if (parLength && !par)
1873 Firebird::Arg::Gds(isc_null_block).raise();
1874
1875 Firebird::ClumpletReader bpb(Firebird::ClumpletReader::Tagged, par, parLength);
1876 if (bpb.getBufferTag() != isc_bpb_version1)
1877 {
1878 (Firebird::Arg::Gds(isc_bpb_version) << Firebird::Arg::Num(bpb.getBufferTag()) <<
1879 Firebird::Arg::Num(isc_bpb_version1)).raise();
1880 }
1881
1882 if (!bpb.find(isc_bpb_type))
1883 return true;
1884
1885 int type = bpb.getInt();
1886
1887 return type & isc_bpb_type_stream ? false : true;
1888}
1889
1890FbShutdown::~FbShutdown()
1891{

Callers 7

xdr_protocolFunction · 0.85
xdr_blob_streamFunction · 0.85
addBlobMethod · 0.85
setDefaultBpbMethod · 0.85
setDefBpbMethod · 0.85
addBlobMethod · 0.85
executeMethod · 0.85

Calls 6

GdsClass · 0.85
NumClass · 0.85
getBufferTagMethod · 0.80
raiseMethod · 0.45
findMethod · 0.45
getIntMethod · 0.45

Tested by

no test coverage detected