add mclBnFr_setBigEndianMod

update-fork
MITSUNARI Shigeo 4 years ago
parent 2f3ccdde99
commit e48973af50
  1. 7
      include/mcl/impl/bn_c_impl.hpp

@ -181,6 +181,13 @@ int mclBnFr_setLittleEndian(mclBnFr *x, const void *buf, mclSize bufSize)
cast(x)->setArrayMask((const char *)buf, bufSize);
return 0;
}
int mclBnFr_setBigEndianMod(mclBnFr *x, const void *buf, mclSize bufSize)
{
bool b;
cast(x)->setBigEndianMod(&b, buf, bufSize);
return b ? 0 : -1;
}
mclSize mclBnFr_getLittleEndian(void *buf, mclSize maxBufSize, const mclBnFr *x)
{
return cast(x)->getLittleEndian(buf, maxBufSize);

Loading…
Cancel
Save