Searched defs:length (Results 426 - 450 of 2288) sorted by relevance

<<11121314151617181920>>

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DASN1OutputStream.java20 int length)
23 if (length > 127)
26 int val = length;
37 write((byte)(length >> i));
42 write((byte)length);
70 writeLength(bytes.length);
91 int pos = stack.length;
102 write(stack, pos, stack.length - pos);
111 writeLength(bytes.length);
19 writeLength( int length) argument
H A DDERBitString.java193 for (int i = 0; i != data.length && i != 4; i++)
208 return 1 + StreamUtil.calculateBodyLength(data.length + 1) + data.length + 1;
215 byte[] bytes = new byte[getBytes().length + 1];
218 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1);
259 for (int i = 0; i != string.length; i++)
275 if (bytes.length < 1)
281 byte[] data = new byte[bytes.length - 1];
283 if (data.length != 0)
285 System.arraycopy(bytes, 1, data, 0, bytes.length
291 fromInputStream(int length, InputStream stream) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DBufferedBlockCipher.java106 * @param len the length of the input.
118 leftOver = total % buf.length - (cipher.getBlockSize() + 2);
122 leftOver = total % buf.length;
130 * doFinal with an input of 'length' bytes.
132 * @param length the length of the input.
134 * with 'length' bytes of input.
137 int length)
140 return length + bufOff;
163 if (bufOff == buf.length)
136 getOutputSize( int length) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
H A DRSADigestSigner.java133 int length)
135 digest.update(input, inOff, length);
156 return rsaEngine.processBlock(data, 0, data.length);
185 sig = rsaEngine.processBlock(signature, 0, signature.length);
193 if (sig.length == expected.length)
197 else if (sig.length == expected.length - 2) // NULL left out
199 int sigOffset = sig.length - hash.length
130 update( byte[] input, int inOff, int length) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
H A DBase64Encoder.java34 for (int i = 0; i < encodingTable.length; i++)
53 int length,
57 int modulus = length % 3;
58 int dataLength = (length - modulus);
126 int length,
133 int end = off + length;
201 int length = 0;
203 int end = data.length();
240 length += 3;
245 length
50 encode( byte[] data, int off, int length, OutputStream out) argument
123 decode( byte[] data, int off, int length, OutputStream out) argument
[all...]
/external/chromium/base/
H A Dplatform_file_posix.cc157 bool TruncatePlatformFile(PlatformFile file, int64 length) { argument
158 return ((file >= 0) && !HANDLE_EINTR(ftruncate(file, length)));
H A Dsync_socket_win.cc20 const size_t kPathMax = 28; // print length of process id + pair count.
110 size_t SyncSocket::Send(const void* buffer, size_t length) { argument
111 DCHECK(length <= kMaxMessageLength);
113 while (count < length) {
117 ((length - count) <= UINT_MAX) ? (length - count) : UINT_MAX);
127 size_t SyncSocket::Receive(void* buffer, size_t length) { argument
128 DCHECK(length <= kMaxMessageLength);
130 while (count < length) {
133 ((length
[all...]
/external/chromium/chrome/browser/chromeos/login/
H A Dcamera.h141 size_t length; member in struct:chromeos::Camera::VideoBuffer
/external/chromium/chrome/browser/
H A Dsession_history_uitest.cc536 int length; local
538 L"", L"domAutomationController.send(history.length)", &length));
539 EXPECT_EQ(1, length);
544 L"", L"domAutomationController.send(history.length)", &length));
545 EXPECT_EQ(2, length);
547 // Now test that history.length is updated when the navigation is committed.
551 L"", L"domAutomationController.send(history.length)", &length));
[all...]
/external/chromium/chrome/browser/sync/util/
H A Dcrypto_helpers.cc27 void MD5Calculator::AddData(const unsigned char* data, int length) { argument
29 MD5Update(&context_, data, length);
/external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/src/org/chromium/
H A DIRCProxyWebSocket.java49 public void onMessage(byte frame, byte[] data,int offset, int length) {} argument
/external/chromium/chrome/common/
H A Dservice_process_util_posix.cc27 int length = read(fd, &buffer, sizeof(buffer)); local
28 if ((length == sizeof(buffer)) && (buffer == kShutDownMessage)) {
31 } else if (length > 0) {
33 } else if (length == 0) {
35 } else if (length < 0) {
H A Dvisitedlink_common.h87 uint32 length; member in struct:VisitedLinkCommon::SharedHeader
/external/chromium/googleurl/src/
H A Durl_canon_icu.cc54 int32_t length,
113 int begin_offset = output->length();
115 output->set_length(output->length());
139 // the length of the output will be set to the length of the new host name.
143 DCHECK(output->length() == 0); // Output buffer is assumed empty.
164 bool ReadUTFChar(const char* str, int* begin, int length, argument
167 U8_NEXT(str, *begin, length, code_point);
181 bool ReadUTFChar(const char16* str, int* begin, int length, argument
184 if (!U16_IS_SURROGATE_LEAD(str[*begin]) || *begin + 1 >= length ||
51 appendURLEscapedChar(const void* context, UConverterFromUnicodeArgs* from_args, const UChar* code_units, int32_t length, UChar32 code_point, UConverterCallbackReason reason, UErrorCode* err) argument
[all...]
/external/chromium/net/disk_cache/
H A Dtrace.cc128 size_t length = strlen(line); local
129 if (length) {
130 line[length] = '\n';
131 line[length + 1] = '\0';
/external/chromium/net/spdy/
H A Dspdy_frame_builder.h41 int length() const { return length_; } function in class:spdy::SpdyFrameBuilder
59 bool ReadBytes(void** iter, const char** data, uint16 length) const;
60 bool ReadData(void** iter, const char** data, uint16* length) const;
94 // The caller must not write more than the length it declares it will.
100 char* BeginWriteData(uint16 length);
103 // length. If there is no room for the given data before the end of the
127 // was an error. Call EndWrite with the returned offset and the given length
129 char* BeginWrite(size_t length);
134 void EndWrite(char* dest, int length);
153 size_t length_; // current length o
[all...]
/external/chromium/net/websockets/
H A Dwebsocket_frame_handler.cc23 void WebSocketFrameHandler::AppendData(const char* data, int length) { argument
24 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(length);
25 memcpy(buffer->data(), data, length);
99 int length = 0; local
103 if (length > std::numeric_limits<int>::max() / 128) {
104 // frame length overflow.
108 length = length * 128 + (c & 0x7f);
113 if (end - p >= length) {
115 frame.message_length = length;
[all...]
/external/chromium/testing/gtest/include/gtest/internal/
H A Dgtest-string.h227 ConstructNonNull(str.c_str(), str.length());
230 operator ::std::string() const { return ::std::string(c_str(), length()); }
234 ConstructNonNull(str.c_str(), str.length());
237 operator ::string() const { return ::string(c_str(), length()); }
241 bool empty() const { return (c_str() != NULL) && (length() == 0); }
268 // Returns the length of the encapsulated string, or 0 if the
270 size_t length() const { return length_; } function in class:testing::internal::String
290 ConstructNonNull(rhs.c_str(), rhs.length());
321 for (size_t i = 0; i != str.length(); i++) {
/external/chromium/third_party/libjingle/source/talk/base/
H A Dbuffer.h44 Buffer(const void* data, size_t length) { argument
45 Construct(data, length, length);
47 Buffer(const void* data, size_t length, size_t capacity) { argument
48 Construct(data, length, capacity);
51 Construct(buf.data(), buf.length(), buf.length());
57 size_t length() const { return length_; } function in class:talk_base::Buffer
62 Construct(buf.data(), buf.length(), buf.length());
74 SetData(const void* data, size_t length) argument
79 AppendData(const void* data, size_t length) argument
85 SetLength(size_t length) argument
107 Construct(const void* data, size_t length, size_t capacity) argument
[all...]
H A Dmacconversion.cc48 unsigned length = CFStringGetLength(cfstr); local
49 char* buf = new char[1 + length];
50 if (CFStringGetCString(cfstr, buf, 1 + length, kCFStringEncodingASCII)) {
51 if (strlen(buf) == length) {
/external/clang/lib/Lex/
H A DTokenConcatenation.cpp63 unsigned length = PP.getSpelling(Tok, TokPtr); local
64 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus0x);
/external/clang/test/PCH/
H A Dcxx-templates.cpp60 static unsigned hash(const char* data, unsigned length) { argument
61 return StringHasher::createHash<char, foldCase>(data, length);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.cc21 uptr length = (uptr)internal_strlen(buffer); local
22 if (length != internal_write(2, buffer, length)) {
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DHex.java237 * is always newline-terminated, unless the passed-in length was zero,
242 * @param length {@code >= 0;} number of bytes to dump
249 public static String dump(byte[] arr, int offset, int length, argument
251 int end = offset + length;
254 if (((offset | length | end) < 0) || (end > arr.length)) {
255 throw new IndexOutOfBoundsException("arr.length " +
256 arr.length + "; " +
264 if (length == 0) {
268 StringBuffer sb = new StringBuffer(length *
[all...]
H A DOutput.java103 * @param length {@code >= 0;} number of bytes to write
105 public void write(byte[] bytes, int offset, int length); argument
109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}.

Completed in 1810 milliseconds

<<11121314151617181920>>