Searched refs:pos (Results 26 - 50 of 520) sorted by relevance

1234567891011>>

/haiku/src/tests/kits/support/bmemoryio/
H A DReadTest.cpp29 off_t pos; local
32 pos = mem.Position();
36 CPPUNIT_ASSERT(mem.Position() == pos + err);
39 pos = mem.Position();
42 CPPUNIT_ASSERT(mem.Position() == pos);
45 pos = mem.Seek(0, SEEK_END);
48 CPPUNIT_ASSERT(mem.Position() == pos);
H A DSetSizeTest.cpp29 off_t pos; local
34 pos = mem.Seek(0, SEEK_END);
37 CPPUNIT_ASSERT(pos == 5);
42 pos = mem.Seek(0, SEEK_END);
45 CPPUNIT_ASSERT(pos == 10);
/haiku/src/kits/support/
H A DBufferIO.cpp53 BBufferIO::ReadAt(off_t pos, void* buffer, size_t size) argument
68 return fStream->ReadAt(pos, buffer, size);
73 || pos < fBufferStart
74 || pos > fBufferStart + (off_t)fBufferUsed
75 || pos + size > fBufferStart + fBufferUsed) {
82 ssize_t sizeRead = fStream->ReadAt(pos, fBuffer, fBufferSize);
89 fBufferStart = pos;
96 memcpy(buffer, fBuffer + pos - fBufferStart, size);
103 BBufferIO::WriteAt(off_t pos, const void* buffer, size_t size) argument
112 return fStream->WriteAt(pos, buffe
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioResampler.h27 virtual status_t Read(void* buffer, int64 pos, int64 frames);
42 int64 ConvertFromSource(int64 pos) const;
43 int64 ConvertToSource(int64 pos) const;
46 status_t _ReadLinear(void* buffer, int64 pos,
/haiku/src/add-ons/translators/exr/
H A DIStreamWrapper.cpp40 IStreamWrapper::seekg(Int64 pos) argument
42 fStream.Seek(pos, SEEK_SET);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBitmapBlock.h32 void FindNextMarked(uint32& pos);
33 void FindNextUnmarked(uint32& pos);
35 void FindPreviousMarked(uint32& pos);
45 void _FindNext(uint32& pos, bool marked);
87 BitmapBlock::FindNextMarked(uint32& pos) argument
89 _FindNext(pos, true);
94 BitmapBlock::FindNextUnmarked(uint32& pos) argument
96 _FindNext(pos, false);
/haiku/headers/posix/sys/
H A Duio.h23 ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, int count);
25 ssize_t writev_pos(int fd, off_t pos, const struct iovec *vec, int count);
/haiku/headers/private/fs_shell/
H A Dfssh_uio.h24 fssh_ssize_t fssh_readv_pos(int fd, fssh_off_t pos, const struct
28 fssh_ssize_t fssh_writev_pos(int fd, fssh_off_t pos,
/haiku/src/tests/system/boot/loader/
H A DHandle.cpp21 # define read_pos(fd, pos, buffer, size) pread(fd, buffer, size, pos)
22 # define write_pos(fd, pos, buffer, size) pwrite(fd, buffer, size, pos)
85 Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
87 //printf("Handle::ReadAt(pos = %lld, buffer = %p, size = %lu)\n", pos, buffer, bufferSize);
88 return read_pos(fHandle, pos, buffer, bufferSize);
93 Handle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
95 return write_pos(fHandle, pos, buffe
[all...]
/haiku/headers/cpp/std/
H A Dbastring.h188 basic_string (const basic_string& _str, size_type pos, size_type n = npos) argument
189 : dat (nilRep.grab ()) { assign (_str, pos, n); }
209 basic_string& append (const basic_string& _str, size_type pos = 0,
211 { return replace (length (), 0, _str, pos, n); }
229 basic_string& assign (const basic_string& str, size_type pos = 0,
231 { return replace (0, npos, str, pos, n); }
261 basic_string& insert (size_type pos, const charT* s, size_type n) argument
262 { return replace (pos, 0, s, n); }
263 basic_string& insert (size_type pos, const charT* s) argument
264 { return insert (pos,
265 insert(size_type pos, size_type n, charT c) argument
300 replace(size_type pos, size_type n1, const charT* s) argument
303 replace(size_type pos, size_type n, charT c) argument
335 operator [](size_type pos) argument
338 at(size_type pos) argument
420 compare(size_type pos, size_type n, const basic_string& str) const argument
422 compare(size_type pos, size_type n, const charT* s) const argument
424 compare(size_type pos, size_type n, const charT* s, size_type n2) const argument
467 size_type pos = i1 - ibegin (); local
[all...]
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DDataStream.cpp42 DataStream::FindBlock(off_t pos, off_t& physical, off_t *_length) argument
44 if (pos >= fSize) {
48 cluster_t clusterIndex = pos / kClusterSize;
49 uint32 offset = pos % kClusterSize;
65 fSize - pos);
66 TRACE("inode %" B_PRIdINO ": cluster %" B_PRIu32 ", pos %" B_PRIdOFF ", %"
67 B_PRIdOFF "\n", fInode->ID(), clusterIndex, pos, physical);
/haiku/src/system/libroot/posix/sys/
H A Duio.c31 readv_pos(int fd, off_t pos, const struct iovec *vecs, int count) argument
34 if (pos < 0 || count < 0) {
38 bytes = _kern_readv(fd, pos, vecs, count);
59 writev_pos(int fd, off_t pos, const struct iovec *vecs, int count) argument
62 if (pos < 0 || count < 0) {
66 bytes = _kern_writev(fd, pos, vecs, count);
/haiku/src/apps/glteapot/
H A DFPS.cpp96 GLfloat pos = 0; local
108 drawChar(pos, 0, (ifps / number) % 10);
109 pos += 1.0;
115 pos += 0.5;
116 drawChar(pos, 0, 10);
117 pos += 1;
118 drawChar(pos, 0, 11);
119 pos += 1;
120 drawChar(pos, 0, 12);
121 pos
[all...]
/haiku/src/apps/cortex/Persistence/Wrappers/
H A DFlatMessageIO.cpp127 const char* pos = base64Data; local
128 while(*pos) {
130 const char* nextBreak = strchr(pos, '\n');
132 chunk = strlen(pos);
134 chunk = nextBreak - pos;
137 context.writeString(pos, chunk);
140 pos += chunk;
141 if(*pos == '\n')
142 ++pos;
/haiku/src/tools/
H A Dexec.c36 parse_quoted(const char* str, int* pos, char** currentArg, int* currentArgLen, argument
39 char end = str[*pos];
42 (*pos)++;
43 c = str[*pos];
53 (*pos)++;
56 append_char(str[*pos], currentArg, currentArgLen,
71 modifiedEnvironment = 0, pos; local
79 pos = 0;
81 switch (str[pos]) {
181 parse_quoted(str, &pos,
[all...]
/haiku/src/add-ons/print/drivers/postscript/
H A DPPDParser.cpp66 int32 pos = 0, next; local
71 while ((next = fContent.FindFirst('\n', pos)) > 0) {
73 fContent.CopyInto(line, pos, next - pos);
86 pos = next +1;
/haiku/src/system/boot/loader/file_systems/fat/
H A DStream.h39 status_t ReadAt(off_t pos, void *buffer, size_t *length,
41 status_t WriteAt(off_t pos, const void *buffer, size_t *length,
46 status_t _FindCluster(off_t pos, uint32& _cluster);
47 status_t _FindOrCreateCluster(off_t pos, uint32& _cluster,
49 status_t FindBlock(off_t pos, off_t &block, off_t &offset);
/haiku/src/tests/kits/interface/menu/menuworld/
H A DViewLayoutFactory.h54 uint32 msgID, BPoint pos,
57 uint32 msgID, BPoint pos,
60 const char* text, BPoint pos, float controlWidth,
64 BPoint pos, float controlWidth,
71 void MoveViewCorner(BView& view, BPoint pos,
/haiku/src/kits/translation/
H A DBitmapStream.cpp66 BBitmapStream::ReadAt(off_t pos, void* buffer, size_t size) argument
72 if (pos >= (off_t)fSize || pos < 0 || buffer == NULL)
78 if (pos < (off_t)sizeof(TranslatorBitmap)) {
79 toRead = sizeof(TranslatorBitmap) - pos;
80 source = (reinterpret_cast<uint8 *>(fBigEndianHeader)) + pos;
82 toRead = fSize - pos;
83 source = (reinterpret_cast<uint8 *>(fBitmap->Bits())) + pos -
96 BBitmapStream::WriteAt(off_t pos, const void* data, size_t size) argument
100 if (!data || pos <
[all...]
/haiku/src/apps/icon-o-matic/generic/gui/panel/color_picker/
H A DAlphaSlider.cpp183 float pos = floorf(b.left + Value() * b.Width() / 255.0 + 0.5); local
185 if (pos - 2 >= b.left) {
187 StrokeLine(BPoint(pos - 2, b.top), BPoint(pos - 2, b.bottom));
189 if (pos - 1 >= b.left) {
191 StrokeLine(BPoint(pos - 1, b.top), BPoint(pos - 1, b.bottom));
193 if (pos + 1 <= b.right) {
195 StrokeLine(BPoint(pos + 1, b.top), BPoint(pos
202 float pos = floorf(b.top + Value() * b.Height() / 255.0 + 0.5); local
[all...]
/haiku/src/system/kernel/fs/
H A Dfd.cpp64 ", pos = %" B_PRId64 "\n",
67 descriptor->cookie, descriptor->open_mode, descriptor->pos);
87 descriptor->pos = -1;
685 common_user_io(int fd, off_t pos, void* buffer, size_t length, bool write) argument
687 if (pos < -1)
700 if (pos == -1 && descriptor->pos != -1) {
701 pos = descriptor->pos;
719 status = descriptor->ops->fd_write(descriptor.Get(), pos, buffe
736 common_user_vector_io(int fd, off_t pos, const iovec* userVecs, size_t count, bool write) argument
824 _user_read(int fd, off_t pos, void* buffer, size_t length) argument
831 _user_readv(int fd, off_t pos, const iovec* userVecs, size_t count) argument
838 _user_write(int fd, off_t pos, const void* buffer, size_t length) argument
845 _user_writev(int fd, off_t pos, const iovec* userVecs, size_t count) argument
852 _user_seek(int fd, off_t pos, int seekType) argument
990 _kern_read(int fd, off_t pos, void* buffer, size_t length) argument
1030 _kern_readv(int fd, off_t pos, const iovec* vecs, size_t count) argument
1082 _kern_write(int fd, off_t pos, const void* buffer, size_t length) argument
1122 _kern_writev(int fd, off_t pos, const iovec* vecs, size_t count) argument
1174 _kern_seek(int fd, off_t pos, int seekType) argument
[all...]
/haiku/src/add-ons/input_server/methods/pen/compat/
H A DStringIO.h25 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size);
26 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);
28 virtual off_t Seek(off_t pos, uint32 seek_mode);
/haiku/src/tests/kits/mail/
H A Dheader_test.cpp93 for (int pos = 0; pos < bytesRead; pos++) {
101 if (!memcmp(&buffer[pos], gDefaultFields[i].rfc_name,
102 fieldLength) && buffer[pos + fieldLength] == ':') {
104 pos += fieldLength + 1;
105 fieldStart = pos;
112 while (pos < bytesRead && buffer[pos] != '\n')
113 pos
[all...]
/haiku/src/apps/terminal/
H A DTermViewHighlight.h59 bool RangeContains(const TermPos& pos) const
61 return pos >= fStart && pos < fEnd;
/haiku/src/apps/serialconnect/
H A DFileSender.cpp29 BPositionIO* pos = dynamic_cast<BPositionIO*>(source); local
30 if (pos)
31 pos->GetSize(&sourceSize);
48 msg.AddInt32("pos", position);

Completed in 165 milliseconds

1234567891011>>